/** * Collects the application-specific autoload settings and merges * them with the framework's required settings. * * NOTE: If you use an identical key in $psr4 or $classmap, then * the values in this file will overwrite the framework's values. */ public function __construct() { parent::__construct(); /* * ------------------------------------------------------------------- * Namespaces * ------------------------------------------------------------------- * This maps the locations of any namespaces in your application * to their location on the file system. These are used by the * Autoloader to locate files the first time they have been instantiated. * * The '/application' and '/system' directories are already mapped for * you. You may change the name of the 'Registry' namespace if you wish, * but this should be done prior to creating any namespaced classes, * else you will need to modify all of those classes for this to work. * * DO NOT change the name of the CodeIgniter namespace or your application * WILL break. * * Prototype: * * $Config['psr4'] = [ * 'CodeIgniter' => SYSPATH * `]; */ $psr4 = ['App\\Migrations' => APPPATH . 'migrations', 'app\\models' => APPPATH . 'models', 'Eddmash\\PowerOrm' => POWERORM_SRCPATH, 'Eddmash\\PowerOrmFaker' => APPPATH . 'libraries' . DIRECTORY_SEPARATOR . 'powerormfaker' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR]; /* * ------------------------------------------------------------------- * Class Map * ------------------------------------------------------------------- * The class map provides a map of class names and their exact * location on the drive. Classes loaded in this manner will have * slightly faster performance because they will not have to be * searched for within one or more directories as they would if they * were being autoloaded through a namespace. * * Prototype: * * $Config['classmap'] = [ * 'MyClass' => '/path/to/class/file.php' * ]; */ $classmap = ['PModel' => POWERORM_BASEPATH . 'PModel.php', 'CI_Model' => BASEPATH . '/core/Model.php', 'CI_DB_forge' => BASEPATH . '/database/DB_forge.php', 'CI_DB_driver' => BASEPATH . '/database/DB_driver.php', 'CI_DB_query_builder' => BASEPATH . '/database/DB_query_builder.php']; //-------------------------------------------------------------------- // Do Not Edit Below This Line //-------------------------------------------------------------------- $this->psr4 = array_merge($this->psr4, $psr4); $this->classmap = array_merge($this->classmap, $classmap); unset($psr4, $classmap); }
/** * Initializes internal state of Config object. * @see parent::__construct() */ public function __construct() { // Make sure that parent constructor is always invoked, since that // is where any default values for this object are set. parent::__construct(); }
function Config($object = null) { parent::__construct($object); }
public function __construct() { parent::__construct('ser_categories.php'); }
function __construct($config_array = array()) { parent::__construct($config_array); if (isset($config_array['virtual_db_node_number'])) { $this->virtual_db_node_number = $config_array['virtual_db_node_number']; $this->hash = new cls_flexihash(new Flexihash_Crc32Hasher(), $this->virtual_db_node_number); } $this->initialize(); }
/** * @param InputConfig $InputConfig */ public function __construct(InputConfig $InputConfig) { $this->input_config = $InputConfig; parent::__construct(); }