Releases: skipperbent/simple-php-router
Releases · skipperbent/simple-php-router
Version 1.1
Breaking changes
RouterRessources
has been renamed toRouterResource
.SimpleRouter::ressource
has been renamed toSimpleRouter::resource
.
Changelog
- 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.0.3.1
- Added new
match
method toRouterEntry
to match specific regular expression on url. GetRoute
now returns provided controller and method if no match is found.- Cleaned up the code a bit.
- Bugfixes and other minor improvements.
Version 1.0.3
- Fixed issues with
getRoute
method. - Added new
Response
andRequest
classes. - Added CSRF stuff.
- Cleanup and bugfixes.
Version 1.0.2.1
- Fixed router for controller and ressources not matching
/something?
. - Added
where
method inRouterEntry
class to support custom regular expression matches on parameters. - Moved parameters property to
RouterRoute
class. - Added
IRouteEntry
class.
Version 1.0.2
- Fixed router for controller and ressources not matching
/something?
. - Added
where
method inRouterRoute
class to support custom regular expression matches on parameters. - Moved parameters property to
RouterRoute
class. - Added
IRouteEntry
class.
Version 1.0.1
- Made sure that urls are always presented in the correct order.
- Ignored
RouterGroup
in when looping through controllers incontrollerUrlMap
.