Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
Use named route for Laravel integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
franzliedke committed Aug 2, 2014
1 parent aca4c69 commit 9146450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FluxBB/Server/ServiceProvider.php
Expand Up @@ -156,14 +156,14 @@ protected function registerLaravelRoute()
$app = $this->app;
$prefix = $app['config']->get('fluxbb.route_prefix', '');

$app['router']->any($prefix.'/{uri}', function ($uri) use ($app) {
$app['router']->any($prefix.'/{uri}', ['as' => 'fluxbb', 'uses' => function ($uri) use ($app) {
$method = $app['request']->method();

$request = $app['fluxbb.router']->getRequest($method, $uri);
$action = $app['fluxbb.server']->resolve($request->getHandler());

return $action->handle($request);
})->where('uri', '.*');
}])->where('uri', '.*');
}

/**
Expand Down

0 comments on commit 9146450

Please sign in to comment.