Exemplo n.º 1
0
 protected function __construct()
 {
     $this->_installer = new Installer();
     $default = $this->_installer->default_params();
     $this->_options = Arr::merge($this->_options, $default);
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * Sets the default options for the task - these use expressions so cannot be set in the field initialisation
  */
 protected function __construct()
 {
     // Initialise the default options
     $this->_options = array('vendor-path' => realpath(APPPATH . '../vendor'), 'public-path' => DOCROOT . 'assets');
     // Call the parent constructor
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * Sets the default options for the task - these use expressions so cannot be set in the field initialisation
  */
 protected function __construct()
 {
     // Initialise the default options
     $this->_options = array('vendor-path' => realpath(APPPATH . '../vendor'), 'public-path' => DOCROOT . 'assets', 'less-input' => 'site.bootstrap', 'css-output' => 'site.bootstrap', 'no-compress' => NULL, 'lint-only' => NULL, 'loop-after' => NULL);
     // Call the parent constructor
     parent::__construct();
 }
Exemplo n.º 4
0
 protected function __construct()
 {
     parent::__construct();
     // Enable immediate log writing
     Log::$write_on_add = TRUE;
     // Create new Log instance, don't use default one otherwise we pollute the logs
     $this->logger = new Log();
 }