Class representing the application configuration. Created to factor out configuration related application functionality from @see N98\Magento\Application
Example #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;
 }
Example #2
0
 /**
  * @param ConfigurationLoader $configurationLoader
  */
 public function setConfigurationLoader(ConfigurationLoader $configurationLoader)
 {
     $this->config->setConfigurationLoader($configurationLoader);
 }
Example #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);
 }