diff --git a/deptrac.php b/deptrac.php index fad21912e..61249353c 100755 --- a/deptrac.php +++ b/deptrac.php @@ -2,6 +2,9 @@ require __DIR__.'/vendor/autoload.php'; +use SensioLabs\Deptrac\Command\AnalyzeCommand; +use SensioLabs\Deptrac\Command\InitCommand; +use SensioLabs\Deptrac\Command\SelfUpdateCommand; use Symfony\Component\Config\FileLocator; use Symfony\Component\Console\Application; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -17,8 +20,8 @@ $container->compile(); $application = new Application(); -$application->add($container->get('command_init')); -$application->add($container->get('command_analyze')); -$application->add($container->get('command_self_update')); +$application->add($container->get(InitCommand::class)); +$application->add($container->get(AnalyzeCommand::class)); +$application->add($container->get(SelfUpdateCommand::class)); $application->setDefaultCommand('analyze'); $application->run(); diff --git a/services.xml b/services.xml index 8b89f8953..dcc2d7d7d 100644 --- a/services.xml +++ b/services.xml @@ -4,72 +4,74 @@ xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> + - + - + - + - + - + - + - - - + - + - + - + - - - - - + - - - - - - + + - + - + null false - + - - + + + + + + + + + + + + +