Kirby\Cli\Command\Make::execute PHP Method

execute() protected method

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)
    {
        $this->input = $input;
        $this->output = $output;
        if (!$this->isInstalled()) {
            throw new RuntimeException('Invalid Kirby installation');
        }
        $this->bootstrap();
        // check if the thing already exists
        if ($this->exists()) {
            throw new RuntimeException('The ' . $this->what . ' exists and cannot be overwritten');
        }
        // make sure the directory exists
        dir::make($this->dest());
        $this->copy();
        $this->info();
    }