Skip to content

Commit

Permalink
Merge pull request #16 from gmo/route-binding
Browse files Browse the repository at this point in the history
Added route binding name
  • Loading branch information
bobdenotter committed Feb 3, 2015
2 parents 4512ac3 + 70b78cd commit f1ed9dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ThumbnailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -51,7 +51,8 @@ function (Application $app) {
$app->pass();
}
}
)->assert('thumb', '.+');
)->assert('thumb', '.+')
->bind('thumb');

return $controllers;
}
Expand Down

0 comments on commit f1ed9dc

Please sign in to comment.