Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

5 years ago
  1. <?php
  2. namespace Prometeo\CommandsBundle\Commands;
  3. use Symfony\Component\Console\Command\Command as ContainerAwareCommand;
  4. use Symfony\Component\Console\Input\InputArgument;
  5. use Symfony\Component\Console\Input\InputInterface;
  6. use Symfony\Component\Console\Input\InputOption;
  7. use Symfony\Component\Console\Output\OutputInterface;
  8. use Doctrine\ORM\EntityManagerInterface;
  9. use Symfony\Component\DependencyInjection\ContainerInterface;
  10. class GenerateScreenshots extends ContainerAwareCommand
  11. {
  12. private $em;
  13. public function __construct(ContainerInterface $container)
  14. {
  15. parent::__construct();
  16. $this->em = $container->get('doctrine')->getManager();
  17. }
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function configure(): void
  22. {
  23. $this->setName('prometeo:screenshoots:generate');
  24. $this->addArgument(
  25. 'folder',
  26. InputArgument::OPTIONAL,
  27. 'File with routes to capture'
  28. )
  29. ;
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function execute(InputInterface $input, OutputInterface $output): void
  35. {
  36. }
  37. }