#!/usr/bin/env php getAppDirectory() . '/providers.php'; if($app->getDebug()) { Debug::enable(); } $application = $app['console']; $application->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', 'dev')); $application->setDispatcher($app['dispatcher']); $twigDebugCommand = new Symfony\Bridge\Twig\Command\DebugCommand('twig:debug'); $twigDebugCommand->setTwigEnvironment($app['twig']); $twigLintCommand = new \Symfony\Bridge\Twig\Command\LintCommand('twig:lint'); $twigLintCommand->setTwigEnvironment($app['twig']); $application->add(new SchemaValidationCommand()); $application->add($twigDebugCommand); $application->add($twigLintCommand); $application->add(new \Symfony\CS\Console\Command\FixCommand()); $application->add(new Sikofitt\Command\CreatePdfCommand()); $application->run($input);