1: <?php
2:
3: namespace AlexisLefebvre\Bundle\AsyncTweetsBundle\Command;
4:
5: use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
6: use Symfony\Component\Console\Input\InputInterface;
7: use Symfony\Component\Console\Output\OutputInterface;
8:
9: class BaseCommand extends ContainerAwareCommand
10: {
11: protected $container;
12: protected $em;
13:
14: protected function configure()
15: {
16: parent::configure();
17:
18: $this
19: ->setName('statuses:base')
20: ->setDescription('Base command');
21: }
22:
23: protected function initialize(InputInterface $input, OutputInterface $output)
24: {
25: parent::initialize($input, $output);
26:
27: $this->container = $this->getContainer();
28:
29:
30: $this->em = $this->container->get('doctrine')
31: ->getManager();
32: }
33: }
34: