/** * Initialize method * * @param Component $component Component instance. * @return void */ public function initialize(Component $component) { $adapter = $component->config('adapter'); if (is_array($adapter)) { $this->options = $adapter + $this->options; } $engine = new IniConfig(dirname($this->options['config']) . DS); $this->options = $engine->read(basename($this->options['config'])); }
/** * Initialize method * * @param Component $Component Component instance * @return void */ public function initialize(Component $Component) { $adapter = $Component->config('adapter'); if (is_array($adapter)) { $this->options = $adapter + $this->options; } $engine = new PhpConfig(dirname($this->options['config']) . DS); $config = $engine->read(basename($this->options['config'])); $this->build($config); $Component->Aco = $this->Aco; $Component->Aro = $this->Aro; }