Skip to content

Instantly share code, notes, and snippets.

@cybrown
Created July 14, 2013 16:33
Show Gist options
  • Select an option

  • Save cybrown/5994848 to your computer and use it in GitHub Desktop.

Select an option

Save cybrown/5994848 to your computer and use it in GitHub Desktop.
Base Silex ControllerProvider.
<?php
use Silex\Application;
use Silex\ControllerProviderInterface;
use Symfony\Component\HttpFoundation\Request;
class CustomControllerProvider implements ControllerProviderInterface
{
public function connect(Application $app)
{
$controllers = $app['controllers_factory'];
return $controllers;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment