/** * @param EntityManager $entityManager * @param string $runtime */ public function __construct(EntityManager $entityManager, $runtime) { parent::__construct(); $this->entityManager = $entityManager; $this->runtime = $runtime; $this->commandName = $this->getName(); }
/** * @param Application $application */ public function __construct(Application $application) { parent::__construct(); $this->application = $application; }
public function __construct($name) { $this->path = $name; parent::__construct(null); }
/** * @param OutputInterface $output */ public function __construct(OutputInterface $output) { parent::__construct(); $this->output = $output; }
/** * Initializes this command with its dependencies. * * @param Factory $factory */ public function __construct(Factory $factory) { parent::__construct('template:list'); $this->factory = $factory; }