/**
  * ScriptDecorator constructor.
  *
  * @param ScriptBroker $scriptBroker
  * @throws CallbackException
  */
 public function __construct(ScriptBroker $scriptBroker)
 {
     parent::__construct(null, null);
     //        $this->checkEnvironment();
     $this->scriptBroker = $scriptBroker;
     $this->promiseBroker = $scriptBroker->getPromiseBroker();
 }
Esempio n. 2
0
 /**
  * Script constructor.
  */
 public function __construct($scriptName, $commandPrefix, CommandLineWorker $commandLineWorker, OutputParser $parser)
 {
     parent::__construct($scriptName, $commandPrefix);
     $this->commandLineWorker = $commandLineWorker;
     $this->parser = $parser;
 }