Пример #1
0
 public function __construct(LaravelConfiguration $config, Application $app)
 {
     parent::__construct($config);
     $this->app = $app;
     $this->complementer = $config->getComplementer();
     $this->useForkingLoop = $config->getLoop() instanceof ForkingLoop;
     foreach ($this->getDefaultContributors() as $contributor) {
         $this->contribute($contributor);
     }
 }
Пример #2
0
 public function __construct(Configuration $config = null)
 {
     parent::__construct($config);
     $this->addCommands($this->getDefaultCommands());
 }