Nette\DI\CompilerExtension::getConfig PHP Метод

getConfig() публичный Метод

Returns extension configuration.
public getConfig ( ) : array
Результат array
    public function getConfig()
    {
        if (func_num_args()) {
            // deprecated
            return Config\Helpers::merge($this->config, $this->getContainerBuilder()->expand(func_get_arg(0)));
        }
        return $this->config;
    }

Usage Example

 /**
  * @return array
  */
 public function getConfig()
 {
     $config = parent::getConfig($this->defaults);
     $appDir = $this->getContainerBuilder()->parameters['appDir'];
     if (!array_key_exists('componentsDir', $config)) {
         $config['componentsDir'] = $appDir . '/Components';
     }
     return $config;
 }
All Usage Examples Of Nette\DI\CompilerExtension::getConfig