Overview

Namespaces

  • AlexisLefebvre
    • Bundle
      • AsyncTweetsBundle
        • Command
        • Controller
        • Entity
        • Utils

Classes

  • AlexisLefebvre\Bundle\AsyncTweetsBundle\AsyncTweetsBundle
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\BaseCommand
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesHomeTimelineCommand
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesHomeTimelineTestCommand
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesReadCommand
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Command\StatusesShowCommand
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Controller\DefaultController
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Media
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\Tweet
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\TweetRepository
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\User
  • AlexisLefebvre\Bundle\AsyncTweetsBundle\Utils\PersistTweet
  • Overview
  • Namespace
  • Class
  • Tree
 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); //initialize parent class method
26: 
27:         $this->container = $this->getContainer();
28: 
29:         // This loads Doctrine, you can load your own services as well
30:         $this->em = $this->container->get('doctrine')
31:             ->getManager();
32:     }
33: }
34: 
AsyncTweetsBundle API documentation generated by ApiGen