2.3.0
版本发布时间: 2020-04-28 21:12:49
symfony-cmf/Routing最新发布版本:3.0.3(2024-04-07 16:09:30)
- Dropped support for PHP 7.1 and Symfony 3.4 and 4.3.
- Added support for Symfony 5.
- Deprecated passing a route object (or anything else that is not a string) as
the
$name
parameter in thegenerate
method of the ChainRouter and the DynamicRouter. Symfony 5 enforces the$name
parameter to be a string with static type declaration. The future proof way to generate a route from an object is to use the route nameRouteObjectInterface::OBJECT_BASED_ROUTE_NAME
(cmf_routing_object
) and pass the route object in the parameters with keyRouteObjectInterface::ROUTE_OBJECT
(_route_object
). - The VersatileGeneratorInterface::supports method is deprecated as it was used
to avoid errors with routers not supporting objects in
$name
.