Class representing the application configuration. Created to factor out configuration related application functionality from @see N98\Magento\Application
Beispiel #1
0
 /**
  * @param ConfigurationLoader $configurationLoader
  *
  * @return $this
  */
 public function setConfigurationLoader(ConfigurationLoader $configurationLoader)
 {
     if ($this->config) {
         $this->config->setLoader($configurationLoader);
     } else {
         /* inject loader to be used later when config is created in */
         /* @see N98\Magento\Application::init */
         $this->configurationLoaderInjected = $configurationLoader;
     }
     return $this;
 }
Beispiel #2
0
 /**
  * @param ConfigurationLoader $configurationLoader
  */
 public function setConfigurationLoader(ConfigurationLoader $configurationLoader)
 {
     $this->config->setConfigurationLoader($configurationLoader);
 }
Beispiel #3
0
 /**
  * @test
  */
 public function loadPartialConfig()
 {
     $config = new Config();
     $this->assertEquals(array(), $config->getDetectSubFolders());
     $config->loadPartialConfig(false);
     $actual = $config->getDetectSubFolders();
     $this->assertInternalType('array', $actual);
     $this->assertNotEquals(array(), $actual);
 }