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