Beispiel #1
0
 /**
  * __construct
  * @param type $stdout
  * @param type $stderr
  * @param type $stdin
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->Config = new OvenConfig();
     $this->stdout->styles('good', array('text' => 'green'));
     $this->stdout->styles('bad', array('text' => 'red'));
     $this->stdout->styles('ok', array('text' => 'yellow'));
 }
Beispiel #2
0
 /**
  * Override initialize
  *
  * @access public
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
     if (!class_exists('CakeSchema')) {
         App::import('Model', 'CakeSchema', false);
     }
 }
Beispiel #3
0
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     $this->setTerminalWidth();
     App::import('Core', 'Router');
     InfinitasPlugin::loadForInstaller();
     parent::__construct($stdout, $stderr, $stdin);
     $this->__verbose = isset($this->params['verbose']) && $this->params['verbose'];
 }
Beispiel #4
0
 public function __construct($stdout, $stderr, $stdin)
 {
     parent::__construct($stdout, $stderr, $stdin);
     /**
      * Configure output variable to log to screen
      * rather than string.
      */
     Configure::write('log_output', true);
 }
Beispiel #5
0
 /**
  * @param ShellDispatcher $Dispatcher
  */
 public function __construct($Dispatcher)
 {
     parent::__construct($Dispatcher);
     App::import('Vendor', 'Eventful.Startup');
     // bootstrap
     $this->Dispatcher = $Dispatcher;
     $this->CakeEvents = CakeEvents::getInstance();
     $listeners = $this->CakeEvents->loadListeners('shells');
     foreach ($listeners as $class => $params) {
         extract($params);
         $this->listeners[$class] = $this->CakeEvents->addListener($className, $eventType, $pluginDir);
     }
 }
 /**
  * UpdateEventsTask constructor.
  *
  * @param ConsoleOutput|null $stdout
  * @param ConsoleOutput|null $stderr
  * @param ConsoleInput|null $stdin
  * @throws Exception
  */
 public function __construct($stdout, $stderr, $stdin)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->bus = new EventBus();
     if (YOUNIQUE_TESTSERVER == true && !defined('TEST_AWS_KEY') && !defined('TEST_AWS_SECRET')) {
         throw new Exception("TEST_AWS_KEY missing from bootstrap");
     }
     if (defined('TEST_AWS_KEY') && defined('TEST_AWS_SECRET')) {
         $this->bus_api = new BusAPI(TEST_AWS_KEY, TEST_AWS_SECRET);
     } else {
         $this->bus_api = new BusAPI();
     }
 }
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->TwigView = new TwigView();
 }
 /**
  * LoadAllPresentersTask constructor.
  *
  * @param ConsoleOutput|null $stdout
  * @param ConsoleOutput|null $stderr
  * @param ConsoleInput|null $stdin
  */
 public function __construct($stdout, $stderr, $stdin)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->bus = new EventBus();
 }
 /**
  *  Constructs this Shell instance.
  *
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->directories();
 }
 /**
  * Constructor
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->PermissionsExtras = new PermissionsExtras();
 }
Beispiel #11
0
 public function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->lastTime = microtime(true);
 }
Beispiel #12
0
 /**
  * Constructor
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->_UsersOperator = new UsersOperator();
 }
Beispiel #13
0
 /**
  *  Constructs this Shell instance.
  *
  */
 public function __construct(&$template)
 {
     $this->Template = $template;
     parent::__construct($template->stdout, $template->stderr, $template->stdin);
 }
Beispiel #14
0
 /**
  * Override initialize
  *
  * @access public
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
 }
Beispiel #15
0
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->lockPath = ROOT . '/app/Console/Lock/';
 }
Beispiel #16
0
 public function __construct()
 {
     parent::__construct();
     $this->cloud_watch_client = CloudWatchClient::factory(['region' => 'us-east-1']);
 }