コード例 #1
0
 /**
  * @param Container $container Pimple DI container.
  * @return void
  */
 public function setDependencies(Container $container)
 {
     $this->modelFactory = $container['model/factory'];
     parent::setDependencies($container);
 }
コード例 #2
0
 /**
  * Retrieve the available default arguments of this action.
  *
  * @link http://climate.thephpleague.com/arguments/ For descriptions of the options for CLImate.
  *
  * @return array
  */
 public function defaultArguments()
 {
     $arguments = ['projectName' => ['longPrefix' => 'name', 'description' => sprintf('Project (module) name. All occurences of "%s" in the files will be changed to this name.', 'Boilerplate'), 'defaultValue' => '']];
     $arguments = array_merge(parent::defaultArguments(), $arguments);
     return $arguments;
 }
コード例 #3
0
 /**
  * @param Container $container Pimple DI container.
  * @return void
  */
 public function setDependencies(Container $container)
 {
     parent::setDependencies($container);
     $this->setQueueItemFactory($container['model/factory']);
 }