__construct() public method

Constructor.
public __construct ( array $config = [] ) : void
$config array Available configuration options are: - `'request'` _object|null_ - `'response'` _array_ - `'classes'` _array_
return void
Esempio n. 1
0
 /**
  * Constructor. Load the routes file and set the environment.
  *
  * @param array $config The default configuration, wherein the absolute path to the
  *        routes file to load may be specified, using the `'routes'` key.
  */
 public function __construct($config = array())
 {
     $defaults = array('routes' => Libraries::get(true, 'path') . '/config/routes.php');
     parent::__construct($config + $defaults);
 }
Esempio n. 2
0
 public function __construct(array $config = array())
 {
     $this->setUp();
     parent::__construct($config);
 }
Esempio n. 3
0
 public function __construct(array $config = array())
 {
     parent::__construct($config + Libraries::get('li3_bot'));
     $this->_originalNick = $this->_nick;
 }
Esempio n. 4
0
 public function __construct($config)
 {
     parent::__construct($config);
     $this->_library = Libraries::get('li3_hierarchy');
     return $this->_cacheDir = $this->_library['path'] . '/resources/tmp/cache';
 }
Esempio n. 5
0
 /**
  * Load the routes file and set the environment.
  *
  * @param array $config The default configuration, wherein the absolute path to the routes file
  *              to load may be specified, using the `'routes_file'` key.
  */
 public function __construct($config = array())
 {
     $defaults = array('routes_file' => LITHIUM_APP_PATH . '/config/routes.php');
     parent::__construct($config + $defaults);
 }
Esempio n. 6
0
 /**
  * Class Constrcutor.
  *
  * @param string $config
  */
 public function __construct($config = array())
 {
     $this->template = strtolower(join('', array_slice(explode("\\", get_class($this)), -1)));
     parent::__construct($config);
 }