diff --git a/src/ThumbnailProvider.php b/src/ThumbnailProvider.php index 162cfcb..5c730df 100644 --- a/src/ThumbnailProvider.php +++ b/src/ThumbnailProvider.php @@ -33,7 +33,7 @@ function ($app) { public function connect(Application $app) { - // creates a new controller based on the default route + /** @var \Silex\ControllerCollection $controllers */ $controllers = $app['controllers_factory']; $controllers->get( @@ -51,7 +51,8 @@ function (Application $app) { $app->pass(); } } - )->assert('thumb', '.+'); + )->assert('thumb', '.+') + ->bind('thumb'); return $controllers; }