public function __construct(Library\ObjectConfig $config) { parent::__construct($config); if (isset($config->adapters)) { $this->_adapters = Library\ObjectConfig::unbox($config->adapters); } }
/** * Object constructor * @param Library\ObjectConfig $config */ public function __construct(Library\ObjectConfig $config = null) { parent::__construct($config); //Compile the cache identifier $this->_cache_identifier = $config->cache_namespace . $config->cache_identifier; $this->_auto_create_routes = $config->auto_create; if ($config->auto_load) { $this->loadRoutes(); } }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->setPath($config->path); }