Ptondereau\PackMe\Commands\CreateCommand::__invoke PHP Method

__invoke() public method

public __invoke ( $dir, 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 __invoke($dir, InputInterface $input, OutputInterface $output)
    {
        $this->input = $input;
        $this->output = $output;
        $output->writeln('<info>I need to know a little more about your future awesome laravel package...</info>');
        $output->writeln('');
        $package = new Package($this->askForPackageName(), $this->askForAuthor(), $dir);
        $package->setDescription($this->askForDescription());
        $output->writeln('');
        $output->writeln('<info>Crafting your laravel package...</info>');
        $this->crafter->craft($package);
        $output->writeln('');
        $output->writeln('<info>Successfully crafted!</info>');
    }