SensioLabs\Deptrac\Command\InitCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configurationLoader = new ConfigurationLoader('depfile.yml');
        if ($configurationLoader->hasConfiguration()) {
            $output->writeln('<error>depfile.yml already exists</error>');
            return 1;
        }
        $configurationLoader->dumpConfiguration();
        $output->writeln('depfile <info>dumped.</info>');
    }