Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Commands;
- use Symfony\Component\Console\Command\Command;
- use Symfony\Component\Console\Input\InputInterface;
- use Symfony\Component\Console\Output\OutputInterface;
- /**
- * Class InitDatabaseCommand
- * @package App\Commands
- * @author: Matěj Račinský
- */
- class InitDatabaseCommand extends Command {
- protected function configure() {
- $this->setName('app:db:init')
- ->setDescription('Fills database with initial data needed by application.');
- }
- protected function execute(InputInterface $input, OutputInterface $output) {
- //inicializace
- $output->writeln('successfully initialized database');
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment