public function registerContainerConfiguration(LoaderInterface $loader) { if ($this->getEnvironment() == 'test_mongodb') { $loader->load(__DIR__ . '/config/config_mongodb.yml'); } else { $loader->load(__DIR__ . '/config/config.yml'); } }