Releases: skipperbent/simple-php-router
Version 1.2.6.2
- Fixed missing "/" in the
getRoute
method on some rare occasions.
Version 1.2.6.1
Note: Re-released as version 1.2.6.1 as the last version didn't contain the fix
- If no parameters are specified/defined in the route, the
getRoute
method will now per default add the parameters array if provided instead.
Version 1.2.5
- Fixed
getRoute
method inSimpleRouter
not being static.
Version 1.2.4
- Added
getUserAgent
and getReferer methods toRequest
class. - Added
ip
method toResponse
class. - Added
getInput
method to return request items inResponse
class. - Added more features to Response class.
Version 1.2.3
- Fixed csrf-token cookie not being set on some paths.
- Changed
RouterException
inBaseCsrfVerifier
toTokenMismatchException
. - Updated documentation.
Version 1.2.2
Breaking changes
Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.
For example when posting to a method - the name of the method no longer has to be named postSomething()
.
Changes
- Added support for custom CSRF middlewares.
- Added more logic to
CsrfToken
class. - Added header support to
Request
class. - Added option to set
BaseCsrfVerifier
class inRouterBase
andSimpleRouter
. - Removed request-type prefix when loading methods.
- Updated documentation.
- Fixed missing
/
in beginning of url ingetRoute
when route does not exist.
Version 1.2.1
Breaking changes
Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.
For example when posting to a method - the name of the method no longer has to be named postSomething()
.
Changes
- Added support for custom CSRF middlewares.
- Added more logic to
CsrfToken
class. - Added header support to
Request
class. - Added option to set
BaseCsrfVerifier
class inRouterBase
andSimpleRouter
. - Removed request-type prefix when loading methods.
- Updated documentation.
Version 1.2
Breaking changes
Removed request-type prefix when loading methods.
Methods within the controller no longer has to be prefixed with the current request method.
For example when posting to a method - the name of the method no longer has to be named postSomething()
.
Changes
- Added more logic to
CsrfToken
class. - Added header support to
Request
class. - Added option to set
BaseCsrfVerifier
class inRouterBase
andSimpleRouter
. - Removed request-type prefix when loading methods.
- Updated documentation.
Version 1.1.2
Breaking changes
RouterRessources
has been renamed toRouterResource
.SimpleRouter::ressource
has been renamed toSimpleRouter::resource
.
Changelog
- Fixed middleware not loading and giving "class must be instance of Middleware" exception.
- Added basic auth to
Response
class. - Added
getPassword()
method for basic auth password inResponse
class. - Fixed router not throwing
RouterException
with "Method not allowed" when using a unsupported request method. - Method request type are now checked on all classes in the
RouterBase
class. - Added support for alias on
RouterRoute
. - Added typo in resource (renamed class from
Ressource
toResource
). - Added optional settings parameter in most of the methods in the
SimpleRouter
class. - Urls now always returns ending slash when using
getRoute()
method. - Fixed common errors with routing.
- Simplified getRoute method.
- Updated documentation.
Version 1.1.1
Breaking changes
RouterRessources
has been renamed toRouterResource
.SimpleRouter::ressource
has been renamed toSimpleRouter::resource
.
Changelog
- Added basic auth to
Response
class. - Added
getPassword()
method for basic auth password inResponse
class. - Fixed router not throwing
RouterException
with "Method not allowed" when using a unsupported request method. - Method request type are now checked on all classes in the
RouterBase
class. - Added support for alias on
RouterRoute
. - Added typo in resource (renamed class from
Ressource
toResource
). - Added optional settings parameter in most of the methods in the
SimpleRouter
class. - Urls now always returns ending slash when using
getRoute()
method. - Fixed common errors with routing.
- Simplified getRoute method.
- Updated documentation.