matthecat / silex-routing-provider
This package is abandoned and no longer maintained.
No replacement package was suggested.
Routing service provider for Silex
2.1.1
2016-12-23 15:34 UTC
Requires
- php: >=5.4.0
- silex/silex: >1
- symfony/config: *
- symfony/routing: *
Requires (Dev)
Suggests
- symfony/yaml: For using Yaml routing files
README
RoutingServiceProvider
The RoutingServiceProvider leverages the Symfony routing component for Silex.
Parameters
- router.ressource: Resource which will be loaded to get a route collection.
- router.options: Router's options.
Services
- router.loader_resolver: An instance of
Symfony\Component\Config\Loader\LoaderResolver
. You can extend it to add new loaders. - router: An instance of
Symfony\Component\Routing\Router
. - request_matcher: Alias of router.
- url_generator: Alias of router.
Registering
use MatTheCat\Routing\Silex\Provider\RoutingServiceProvider; $app->register(new RoutingServiceProvider());