Azathoth42

command

Jun 19th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Commands;
  4. use Symfony\Component\Console\Command\Command;
  5. use Symfony\Component\Console\Input\InputInterface;
  6. use Symfony\Component\Console\Output\OutputInterface;
  7.  
  8. /**
  9.  * Class InitDatabaseCommand
  10.  * @package App\Commands
  11.  * @author: Matěj Račinský
  12.  */
  13. class InitDatabaseCommand extends Command {
  14.  
  15.     protected function configure() {
  16.         $this->setName('app:db:init')
  17.             ->setDescription('Fills database with initial data needed by application.');
  18.     }
  19.  
  20.     protected function execute(InputInterface $input, OutputInterface $output) {
  21.   //inicializace
  22.       $output->writeln('successfully initialized database');
  23.         return 0;
  24.     }
  25.  
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment