public function __construct(\Eccube\Application $app, $name = null)
 {
     parent::__construct($name);
     $app['debug'] = true;
     $app->initialize();
     // executeでdump($app)を使いたいので.
     $dumper = new \Sorien\Provider\PimpleDumpProvider();
     $app->register($dumper, array('dumper' => $dumper));
     $app->boot();
     $this->app = $app;
 }
Exemple #2
0
 public function __construct(\Eccube\Application $app, $name = null)
 {
     parent::__construct($name);
     $this->app = $app;
 }
 public function __construct()
 {
     parent::__construct('sh');
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('updateSchema');
     $this->setDescription('Write the schema to the database');
 }
 /**
  * @param string $name
  * @param string $consumerName
  */
 public function __construct($name, $consumerName)
 {
     parent::__construct($name);
     $this->consumerName = $consumerName;
 }
 /**
  * Class constructor
  * 
  * @param BogoBogoSorter $sorter Bogobogo sorter
  */
 public function __construct(BogoBogoSorter $sorter)
 {
     parent::__construct();
     $this->sorter = $sorter;
 }
 protected function configure()
 {
     parent::configure();
     $this->setName('addUser')->setDescription('Add a user record')->addArgument('username', InputArgument::REQUIRED, 'Username?')->addArgument('email', InputArgument::REQUIRED, 'Email?')->addArgument('password', InputArgument::REQUIRED, 'Password?');
 }