Skip to content

Commit

Permalink
Upgrade to Symfony ^4.0
Browse files Browse the repository at this point in the history
(based on silexphp#132)
  • Loading branch information
GregOriol committed Jun 1, 2018
1 parent 57488d3 commit 0da113f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
5 changes: 2 additions & 3 deletions WebProfilerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function register(Container $app)
}

$app['web_profiler.controller.profiler'] = function ($app) use ($baseDir) {
return new ProfilerController($app['url_generator'], $app['profiler'], $app['twig'], $app['data_collector.templates'], $app['web_profiler.debug_toolbar.position'], null, $baseDir);
return new ProfilerController($app['url_generator'], $app['profiler'], $app['twig'], $app['data_collector.templates'], null, $baseDir);
};

$app['web_profiler.controller.router'] = function ($app) {
Expand All @@ -251,7 +251,7 @@ public function register(Container $app)
$app['web_profiler.toolbar.listener'] = function ($app) {
$mode = $app['web_profiler.debug_toolbar.enable'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED;

return new WebDebugToolbarListener($app['twig'], $app['web_profiler.debug_toolbar.intercept_redirects'], $mode, $app['web_profiler.debug_toolbar.position'], $app['url_generator']);
return new WebDebugToolbarListener($app['twig'], $app['web_profiler.debug_toolbar.intercept_redirects'], $mode, $app['url_generator']);
};

$app['profiler'] = function ($app) {
Expand All @@ -272,7 +272,6 @@ public function register(Container $app)
$app['profiler.only_exceptions'] = false;
$app['profiler.only_master_requests'] = false;
$app['web_profiler.debug_toolbar.enable'] = true;
$app['web_profiler.debug_toolbar.position'] = 'bottom';
$app['web_profiler.debug_toolbar.intercept_redirects'] = false;

$app['profiler.listener'] = function ($app) {
Expand Down
25 changes: 11 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,19 @@
],
"require": {
"silex/silex": "^2.0",
"symfony/web-profiler-bundle": "^2.8|^3.0",
"symfony/twig-bundle": "^2.8|^3.0",
"symfony/twig-bridge": "^2.8|^3.0",
"symfony/stopwatch": "^2.8|^3.0"
},
"conflict": {
"symfony/web-profiler-bundle": "3.1.0"
"symfony/web-profiler-bundle": "^4.0",
"symfony/twig-bundle": "^4.0",
"symfony/twig-bridge": "^4.0",
"symfony/stopwatch": "^4.0"
},
"require-dev": {
"symfony/browser-kit": "^2.8|^3.0",
"symfony/css-selector": "^2.8|^3.0",
"symfony/debug-bundle": "^2.8|^3.0",
"symfony/phpunit-bridge": "~3.2",
"symfony/security": "^2.8|^3.0",
"symfony/security-bundle": "^2.8|^3.0",
"symfony/translation": "^2.8|^3.0"
"symfony/browser-kit": "^4.0",
"symfony/css-selector": "^4.0",
"symfony/debug-bundle": "^4.0",
"symfony/phpunit-bridge": "^4.0",
"symfony/security": "^4.0",
"symfony/security-bundle": "^4.0",
"symfony/translation": "^4.0"
},
"autoload": {
"psr-4": { "Silex\\Provider\\": "" }
Expand Down

0 comments on commit 0da113f

Please sign in to comment.