N98\Magento\Application\Config::getLoader PHP Method

getLoader() public method

public getLoader ( ) : ConfigurationLoader
return ConfigurationLoader
    public function getLoader()
    {
        if (!$this->loader) {
            $this->loader = $this->createLoader($this->initConfig, $this->isPharMode, $this->output);
            $this->initConfig = array();
        }
        return $this->loader;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param array $initConfig
  * @param OutputInterface $output
  * @return ConfigurationLoader
  */
 public function getConfigurationLoader(array $initConfig, OutputInterface $output)
 {
     trigger_error(__METHOD__ . ' moved, use getConfig()->getLoader()', E_USER_DEPRECATED);
     unset($initConfig, $output);
     $loader = $this->config ? $this->config->getLoader() : $this->configurationLoaderInjected;
     if (!$loader) {
         throw new RuntimeException('ConfigurationLoader is not yet available, initialize it or Config first');
     }
     return $loader;
 }
All Usage Examples Of N98\Magento\Application\Config::getLoader