PartKeepr\SetupBundle\Command\UpdateConfigCommand::execute PHP Method

execute() public method

public 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
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $configService = $this->getContainer()->get('partkeepr.setup.config_service');
        $config = $configService->configParser();
        $configOutput = $configService->getConfig($config);
        file_put_contents($configService->getConfigPath(false), $configOutput);
        $output->writeln('Config updated');
    }
UpdateConfigCommand