@@ -6,10 +6,8 @@ |
||
| 6 | 6 | require_once __DIR__ . '/../vendor/autoload.php'; |
| 7 | 7 | |
| 8 | 8 | use Silex\Application; |
| 9 | -use Symfony\Component\HttpFoundation\Request; |
|
| 10 | 9 | use Symfony\Component\HttpFoundation\Response; |
| 11 | 10 | use Silex\Provider\UrlGeneratorServiceProvider; |
| 12 | -use Silex\Provider\SessionServiceProvider; |
|
| 13 | 11 | use Silex\Provider\ServiceControllerServiceProvider; |
| 14 | 12 | use Silex\Provider\MonologServiceProvider; |
| 15 | 13 | |
@@ -48,7 +48,9 @@ |
||
| 48 | 48 | |
| 49 | 49 | // Error handler |
| 50 | 50 | $app->error(function(\Exception $e, $code) use ($app) { |
| 51 | - if($app['debug']) return; |
|
| 51 | + if($app['debug']) { |
|
| 52 | + return; |
|
| 53 | + } |
|
| 52 | 54 | |
| 53 | 55 | switch($code) { |
| 54 | 56 | case 404: |
@@ -1,5 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | -use Silex\Application; |
|
| 3 | 2 | use Kineo\Controller\VoteController; |
| 4 | 3 | |
| 5 | 4 | $app['vote.controller'] = $app->share(function() use ($app) { |
@@ -1,5 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | -use Silex\Application; |
|
| 3 | 2 | use Kineo\Controller\VoteController; |
| 4 | 3 | |
| 5 | 4 | $app['vote.controller'] = $app->share(function() use ($app) { |
@@ -1,5 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | -use Silex\Application; |
|
| 3 | 2 | use Kineo\Controller\VoteController; |
| 4 | 3 | |
| 5 | 4 | $app['vote.controller'] = $app->share(function() use ($app) { |
@@ -1,5 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | -use Silex\Application; |
|
| 3 | 2 | use Kineo\Controller\VoteController; |
| 4 | 3 | |
| 5 | 4 | $app['vote.controller'] = $app->share(function() use ($app) { |