Kirby\Cli\Command\Install\Index::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)
    {
        $file = $this->dir() . '/index.php';
        if (file_exists($file)) {
            throw new RuntimeException('The index.php file already exists. Please remove the old one it first.');
        }
        $download = util::download('https://raw.githubusercontent.com/getkirby/starterkit/master/index.php');
        file_put_contents($file, $download);
        $output->writeln('');
        $output->writeln('<comment>The index.php has been installed!</comment>');
        $output->writeln('');
    }