This patch is in preparation for a v3 release of zend-router, and accomplishes the following.
Top-level namespace
The namespace has been promoted from Zend\Mvc\Router to Zend\Router, and all classes updated accordingly.
Removal of Console routes
Console routing has been removed (it will be in a forthcoming zend-mvc-console repository, which is currently in progress).
Removal of deprecated functionality
Deprecated functionality was removed, specifically the Query route.
Standalone component
This PR will supercede #1, and prepares the component to work standalone. This includes:
Importing all existing service factories from zend-mvc related to routing, refactoring them to the new namespace and removing console-awareness, and pushing them into the appropriate subcomponent namespaces.
Testing all service factories.
Adding a generic invokable ConfigProvider class for providing basic configuration (primarily dependency mapping); this is for use with expressive-config-manager and thus zend-expressive-zendrouter.
Adding a generic Module class with a getConfig() method that delegates to ConfigProvider to provide zend-mvc-compatible configuration.
Switching CS tooling
Finally, this patch also swaps php-cs-fixer for phpcs, and ensures all classes comply.
This patch is in preparation for a v3 release of zend-router, and accomplishes the following.
Top-level namespace
The namespace has been promoted from
Zend\Mvc\Router
toZend\Router
, and all classes updated accordingly.Removal of Console routes
Console routing has been removed (it will be in a forthcoming zend-mvc-console repository, which is currently in progress).
Removal of deprecated functionality
Deprecated functionality was removed, specifically the Query route.
Standalone component
This PR will supercede #1, and prepares the component to work standalone. This includes:
ConfigProvider
class for providing basic configuration (primarily dependency mapping); this is for use with expressive-config-manager and thus zend-expressive-zendrouter.Module
class with agetConfig()
method that delegates toConfigProvider
to provide zend-mvc-compatible configuration.Switching CS tooling
Finally, this patch also swaps php-cs-fixer for phpcs, and ensures all classes comply.