All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning] (http://semver.org/). For change log format, use [Keep a Changelog] (http://keepachangelog.com/).
- Prevent unserialize with no options
NotFoundException
does not contain route name
Router::finalizePath()
to finalize path
- Serialization of router options
RouterInterface::generate()
accepts aRouteInterface
object or string instead of only string
- Options for router
- Option: "X-Forwarded-Prefix" (boolean, or string)
- Compatibility with
psr/http-message
^2.0 - Compatibility with
psr/log
^2.0 and ^3.0
- New type of attribute: "slug"
- New type of attribute: "uuid4"
- Attribute type: "uuid" ; use "uuid4" instead
- Optional attributes are empty value instead of not returned
NULL
parameters aren't excluded from generation of route
No changes were introduced since the previous beta 3 release.
RouteAttributes
and multi-dimensional parameters doesn't work
Router::isValid()
accepts a string value- Add
RouteAttributes
interface in signature of methodRouterInterface::generate()
RoutingException
details all missing attributes to generate root
- Remove multiple routes with same name
- Fixed
Route
with empty path - Fixed serialization of sub routes
- Allow routes with same name
- Allow declaration of attribute type in path
- Allow optional part in path
- Route can be a group of routes with inheritance of attributes
- Used of \Generator class
- New Attribute object to manage attributes in routes
- Dependency with
psr/http-message
library - Compilation concept to generate regex when necessary or before serialization of Route object
- Refactoring
- Bump compatibility to PHP 8 minimum
- Route object can be a group of routes
- Remove RouteGenerator class
- Remove dependency with
berlioz/php-doc
library - Remove dependency with
berlioz/http-message
library - Remove dependency with
mbstring
extension - Remove RouteSet class
- PHP 8 compatibility
- Method Route::filterParameters() with multidimensional parameters array fixed
First version