Routing service provider for Silex
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Silex/Provider
tests
.gitignore
.php_cs
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Build Status

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());