File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 22
33namespace Knp \Provider ;
44
5- use Silex \ServiceProviderInterface ;
5+ use Pimple \Container ;
6+ use Pimple \ServiceProviderInterface ;
67use Silex \Application ;
78
89use Knp \Console \Application as ConsoleApplication ;
1112
1213class ConsoleServiceProvider implements ServiceProviderInterface
1314{
14- public function register (Application $ app )
15+ public function register (Container $ app )
1516 {
16- $ app ['console ' ] = $ app -> share ( function () use ($ app ) {
17+ $ app ['console ' ] = function () use ($ app ) {
1718 $ application = new ConsoleApplication (
1819 $ app ,
1920 $ app ['console.project_directory ' ],
@@ -24,7 +25,7 @@ public function register(Application $app)
2425 $ app ['dispatcher ' ]->dispatch (ConsoleEvents::INIT , new ConsoleEvent ($ application ));
2526
2627 return $ application ;
27- }) ;
28+ };
2829 }
2930
3031 public function boot (Application $ app )
You can’t perform that action at this time.
0 commit comments