src/Console/SeedRunCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $seed = Seed::new($input->getOption('dsn'), $input->getOption('path'), $output);

        if ($this->container instanceof ContainerInterface) {
            $seed->setContainer($this->container);
        }

        $seed
            ->run($input->getArgument('name'))
            ->close();

        $output->writeln('');
        $output->writeln('<comment>Seed completed</comment>');
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $seed = Seed::new($input->getOption('dsn'), $input->getOption('path'), $output);

        if ($this->container instanceof ContainerInterface) {
            $seed->setContainer($this->container);
        }

        $seed
            ->run($input->getArgument('name'))
            ->close();

        $output->writeln('');
        $output->writeln('<comment>Seed completed</comment>');
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ seed = Seed :: new ( $ input -> getOption ( 'dsn' ) , $ input -> getOption ( 'path' ) , $ output ) ; if ( $ this -> container instanceof ContainerInterface ) { $ seed -> setContainer ( $ this -> container ) ; } $ seed -> run ( $ input -> getArgument ( 'name' ) ) -> close ( ) ; $ output -> writeln ( '' ) ; $ output -> writeln ( '<comment>Seed completed</comment>' ) ; }
Execute command, captain.

@param \Symfony\Component\Console\Input\InputInterface $input
@param \Symfony\Component\Console\Output\OutputInterface $output
@return int|null|void
@throws \Invoker\Exception\InvocationException
@throws \Invoker\Exception\NotCallableException
@throws \Invoker\Exception\NotEnoughParametersException
@throws \League\Flysystem\FileNotFoundException
Execute command captain .