/** * Load the configuration items from all of the files. * * @param \Viserio\Contracts\Foundation\Application $app * @param \Viserio\Contracts\Config\Manager $configManager */ protected function loadConfigurationFiles(Application $app, ConfigManager $configManager) { $configPath = realpath($app->get(ConfigManager::class)->get('path.config')); foreach ($this->getFiles($configPath) as $key => $path) { $configManager->import($path); } }
public function testCall() { $config = new ConfigManager(new Repository()); $config->set('foo', 'bar'); $this->assertSame(1, count($config->getKeys())); $config->setLoader($this->fileloader); $this->assertInstanceOf(TaggableParser::class, $config->getParser()); }