Releases: skipperbent/simple-php-router
Releases · skipperbent/simple-php-router
Version 4.0.0.9
- Fixed
Url
not outputting correct class when used in json_encode. - Fixed
IInputItem
being too strict about strings which may be nullable.
Version 4.0.0.11
- Fixed
getName
method inLoadableRoute
class can contain nullable value. - Updated
helpers.php
.
Version 4.0.0.10
- Fixed
getError
inInputFile
returning string instead of int.
Version 4.0.0.8
- Fixed getting specific input-value by request-method in
InputHandler
class. - Added .idea files
Version 4.0.0.7
- Removed namespace from groups
Version 4.0.0.6
- Fixed rewrite from ExceptionHandler sometimes not working correctly.
- Fixed default-namespace for Group and partial groups.
Version 4.0.0.5
- Updated
input
helper function. - Update documentation to reflect v4 changes in
InputHandler
class.
Version 4.0.0.4
- Fixed
$methods
argument not properly passed inInputHandler
class. - Updated helpers.php with latest changes.
Version 4.0.0.3
- Fixed issue with wrong defaultValue used in
getValue
method inInputHandler
class.
Version 4.0.0.2
Version 4.0.0.0
WARNING: This release is experimental. Upgrade with caution.
- PHP 7 support. This version of the library requires PHP version 7.1 or higher.
request()->getInput()
renamed torequest()->getInputHandler()
.\Pecee\Http\Input\Input
class renamed toPecee\Http\Input\InputHandler
.- Added
contains($value)
method toUrl
class. - Added
indexOf($value)
method toUrl
class. - Router now stores all loaded routes if multiple routes has been rendered.
- Added method for getting all loaded routes by calling
SimpleRouter::request()->getLoadedRoutes()
. - Removed
setLoadedRoute($route)
method fromRequest
class and replaced it withaddLoadedRoute($route)
. - Added debug helper:
SimpleRouter::startDebug()
. - Added logging to router.
- Started to implement logging in router.
- Simplified rewrite handling in
Router
class. - Added
debug($message, ...$args)
,getDebugLog()
andsetDebugEnabled($bool)
methods toRouter
class. - Updated unit-tests.
- Updated phpDocs.
- Updated documentation to reflect new changes.
- Added dependency injection support.
- Better usage of
Url
class. When callingurl
you can now use the methods on theUrl
class to filter params, get relative/absolute url etc. See documentation for more info. - Updated
helpers.php
and helpers example in documentation. - MalformedUrlException is now handled properly by Router to avoid phpStorm syntax highlights in routes.
- Added
getUrlCopy
toRequest
class, used to clone the current route (to keep domain etc.) setUrl
inRequest
are now strict and requiresUrl
object and no longer accepts strings.- Renamed
hasRewrite
property tohasPendingRewrite
inRequest
class. - Renamed
hasRewrite
andsetHasRewrite
methods tohasPendingRewrite
andsetHasPendingRewrite
inRequest
class. - Renamed
get
method togetValue
inInputHandler
class. - Renamed
getObject
toget
and removed$defaultValue
argument inInputHandler
class. - Optimized
InputHandler
class. - Fixed issue with
$token
not being proper string inBaseCsrfVerifier
when token is not found. - Added php.ini configuration settings to
setcookie
inCookieTokenProvider
for improved security. - Added
$router
parameter toboot
method inIRouterBootManager
which allows for further manipulation of the router within the bootmanager. - Renamed
$processingRoute
property to$isProcessingRoute
inRouter
class. - Fixed
reset
method not resetting CSRF-verifier inRouter
class. - Moved
arrayToParams
helper-method fromRouter
toUrl
class. - Began to add Event-functionality to router.
- Added
addEventHandler
method toSimpleRouter
class. - Moved
Pecee\SimpleRouter\Handler\CallbackExceptionHandler
toPecee\SimpleRouter\Handlers\CallbackExceptionHandler
. - Moved
Pecee\SimpleRouter\Handler\IExceptionHandler
toPecee\SimpleRouter\Handlers\IExceptionHandler
. - Added Events section to documentation.
- Added more information on url-handling in documentation.
- Added event-arguments data.
- Added event-arguments to the event list in documentation.
- Fixed missing exceptions thrown in phpDocs.
- Added unit-tests for new event functionality.
- Added unit-tests for dependency injection functionality.
- Added
ClassLoader
class andIClassLoader
interface. - Added php-di composer dependency.
- Optimisations.
- Added donate section to documentation.
- Updated readme.