/** * __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')); }
/** * 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); } }
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']; }
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); }
/** * @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(); }
public function __construct(&$dispatch) { parent::__construct($dispatch); $this->lastTime = microtime(true); }
/** * Constructor */ public function __construct($stdout = null, $stderr = null, $stdin = null) { parent::__construct($stdout, $stderr, $stdin); $this->_UsersOperator = new UsersOperator(); }
/** * Constructs this Shell instance. * */ public function __construct(&$template) { $this->Template = $template; parent::__construct($template->stdout, $template->stderr, $template->stdin); }
/** * Override initialize * * @access public */ function __construct(&$dispatch) { parent::__construct($dispatch); $this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS; }
public function __construct($stdout = null, $stderr = null, $stdin = null) { parent::__construct($stdout, $stderr, $stdin); $this->lockPath = ROOT . '/app/Console/Lock/'; }
public function __construct() { parent::__construct(); $this->cloud_watch_client = CloudWatchClient::factory(['region' => 'us-east-1']); }