本文整理汇总了PHP中Shell::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Shell::__construct方法的具体用法?PHP Shell::__construct怎么用?PHP Shell::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shell
的用法示例。
在下文中一共展示了Shell::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* __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'));
}
示例2:
/**
* 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);
}
}
示例3: __construct
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'];
}
示例4: __construct
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);
}
示例5: __construct
/**
* @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);
}
}
示例6: __construct
/**
* 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();
}
}
示例7: __construct
public function __construct($stdout = null, $stderr = null, $stdin = null)
{
parent::__construct($stdout, $stderr, $stdin);
$this->TwigView = new TwigView();
}
示例8: __construct
/**
* 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();
}
示例9:
/**
* Constructs this Shell instance.
*
*/
function __construct(&$dispatch)
{
parent::__construct($dispatch);
$this->directories();
}
示例10: __construct
/**
* Constructor
*/
public function __construct($stdout = null, $stderr = null, $stdin = null)
{
parent::__construct($stdout, $stderr, $stdin);
$this->PermissionsExtras = new PermissionsExtras();
}
示例11: __construct
public function __construct(&$dispatch)
{
parent::__construct($dispatch);
$this->lastTime = microtime(true);
}
示例12: __construct
/**
* Constructor
*/
public function __construct($stdout = null, $stderr = null, $stdin = null)
{
parent::__construct($stdout, $stderr, $stdin);
$this->_UsersOperator = new UsersOperator();
}
示例13: __construct
/**
* Constructs this Shell instance.
*
*/
public function __construct(&$template)
{
$this->Template = $template;
parent::__construct($template->stdout, $template->stderr, $template->stdin);
}
示例14:
/**
* Override initialize
*
* @access public
*/
function __construct(&$dispatch)
{
parent::__construct($dispatch);
$this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
}
示例15: __construct
public function __construct($stdout = null, $stderr = null, $stdin = null)
{
parent::__construct($stdout, $stderr, $stdin);
$this->lockPath = ROOT . '/app/Console/Lock/';
}