当前位置: 首页>>代码示例>>PHP>>正文


PHP Shell::__construct方法代码示例

本文整理汇总了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'));
 }
开发者ID:shama,项目名称:oven,代码行数:14,代码来源:OvenAppShell.php

示例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);
     }
 }
开发者ID:joseluistorres,项目名称:miacupones,代码行数:13,代码来源:fixture.php

示例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'];
 }
开发者ID:nani8124,项目名称:infinitas,代码行数:8,代码来源:AppShell.php

示例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);
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:9,代码来源:SqsTask.php

示例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);
     }
 }
开发者ID:ketanshah79,项目名称:eventful-cakephp,代码行数:16,代码来源:event.php

示例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();
     }
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:21,代码来源:UpdateEventsTask.php

示例7: __construct

 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->TwigView = new TwigView();
 }
开发者ID:alanrodas,项目名称:TwigView,代码行数:5,代码来源:CompileTemplatesShell.php

示例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();
 }
开发者ID:kameshwariv,项目名称:testexample,代码行数:12,代码来源:LoadAllPresentersTask.php

示例9:

 /**
  *  Constructs this Shell instance.
  *
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->directories();
 }
开发者ID:rchavik,项目名称:cake_admin,代码行数:9,代码来源:admin_controller.php

示例10: __construct

 /**
  * Constructor
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->PermissionsExtras = new PermissionsExtras();
 }
开发者ID:simkimsia,项目名称:permissions-extras,代码行数:8,代码来源:PermissionsExtrasShell.php

示例11: __construct

 public function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->lastTime = microtime(true);
 }
开发者ID:nani8124,项目名称:infinitas,代码行数:5,代码来源:CronResourceTask.php

示例12: __construct

 /**
  * Constructor
  */
 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->_UsersOperator = new UsersOperator();
 }
开发者ID:vladshish,项目名称:usershell,代码行数:8,代码来源:UserShell.php

示例13: __construct

 /**
  *  Constructs this Shell instance.
  *
  */
 public function __construct(&$template)
 {
     $this->Template = $template;
     parent::__construct($template->stdout, $template->stderr, $template->stdin);
 }
开发者ID:pmoraes,项目名称:templates,代码行数:9,代码来源:SubTemplateShell.php

示例14:

 /**
  * Override initialize
  *
  * @access public
  */
 function __construct(&$dispatch)
 {
     parent::__construct($dispatch);
     $this->path = $this->params['working'] . DS . 'tests' . DS . 'fixtures' . DS;
 }
开发者ID:surfingtonio,项目名称:flashub.com,代码行数:10,代码来源:fixture.php

示例15: __construct

 public function __construct($stdout = null, $stderr = null, $stdin = null)
 {
     parent::__construct($stdout, $stderr, $stdin);
     $this->lockPath = ROOT . '/app/Console/Lock/';
 }
开发者ID:pdkhuong,项目名称:BBG,代码行数:5,代码来源:AppShell.php


注:本文中的Shell::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。