作者:letchi
项目:VendPheatBundl
/**
* Loads the container configuration.
*
* @param LoaderInterface $loader A LoaderInterface instance
* @api
*/
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/Resources/config/default.yml');
if ($this->config) {
$loader->load(__DIR__ . '/Resources/config/' . $this->config);
}
}
作者:knplab
项目:rad-editio
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
if (is_file($file = __DIR__ . '/config/config_' . $this->getEnvironment() . '_local.yml')) {
$loader->load($file);
}
}
作者:mrubiosa
项目:facad
public function registerContainerConfiguration(LoaderInterface $loader)
{
$file = $this->getRootDir() . '/config.yml';
$contents = Yaml::dump($this->_config);
file_put_contents($file, $contents);
$loader->load($file);
}
作者:neilferreir
项目:symfony-standar
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
if (null !== $this->devConfig) {
$loader->load($this->devConfig);
}
}
作者:ramunas
项目:MigrationBundl
/**
* {@inheritdoc}
*/
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config.yml');
if (is_callable($this->configCallback)) {
$loader->load($this->configCallback);
}
}
作者:Onnei
项目:dedipane
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
$loader->load(__DIR__ . '/config/security.yml');
$loader->load(__DIR__ . '/config/roles.yml');
$loader->load(__DIR__ . '/config/resources.yml');
}
作者:rfc148
项目:blo
public function registerContainerConfiguration(LoaderInterface $loader)
{
if (!file_exists($filename = $this->getRootDir() . '/' . $this->testCase . '/config.yml')) {
throw new \RuntimeException(sprintf('The config file "%s" does not exist.', $filename));
}
$loader->load($filename);
}
作者:orourked
项目:symfony-plugi
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_plugin.yml');
foreach ($this->pluginAdapter->getConfigurationFiles() as $file) {
$loader->load($file);
}
}
作者:petforsber
项目:WamBundl
public function registerContainerConfiguration(\Symfony\Component\Config\Loader\LoaderInterface $loader)
{
$config = array('secret' => '$ecret', 'router' => array('resource' => '%kernel.root_dir%/routing_test.yml'), 'form' => NULL, 'csrf_protection' => NULL, 'validation' => array('enable_annotations' => true), 'templating' => array('engines' => array(0 => 'twig')), 'fragments' => NULL, 'test' => NULL, 'session' => array('storage_id' => 'session.storage.mock_file'), 'profiler' => array('collect' => false));
$loader->load(function (ContainerBuilder $container) use($config) {
$container->loadFromExtension('framework', $config);
});
}
作者:adriensamso
项目:symfony-tiny-editio
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir() . '/config/config.yml');
if ($this->isDebug()) {
$loader->load($this->getRootDir() . '/config/config_dbg.yml');
}
}
作者:kriswilli
项目:sul
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(SuluTestBundle::getConfigDir() . '/config.php');
if (class_exists('Sulu\\Bundle\\SearchBundle\\SuluSearchBundle')) {
$loader->load(__DIR__ . '/config/search.yml');
}
}
作者:frogriotco
项目:ResourceRestBundl
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config.php');
if ($this->getEnvironment() !== 'behat' && file_exists(ResourceContext::getConfigurationFile())) {
$loader->import(ResourceContext::getConfigurationFile());
}
}
作者:scaytras
项目:symfony-sms-interfac
/**
* Loads the container configuration.
*
* @param LoaderInterface $loader A LoaderInterface instance
*
* @api
*/
public function registerContainerConfiguration(LoaderInterface $loader)
{
if (null != $this->config) {
$loader->load($this->config);
}
$loader->load(__DIR__ . '/config/default.yml');
}
作者:sikofit
项目:symfony-micr
protected function configureContainer(ContainerBuilder $c, LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config.yml');
if (isset($this->bundles['WebProfilerBundle'])) {
$c->loadFromExtension('web_profiler', ['toolbar' => TRUE, 'intercept_redirects' => FALSE]);
}
}
作者:ABD-de
项目:NelmioApiDocBundl
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/' . $this->environment . '.yml');
if (class_exists('Dunglas\\ApiBundle\\DunglasApiBundle')) {
$loader->load(__DIR__ . '/config/dunglas_api.yml');
}
}
作者:boas
项目:JMSDiExtraBundl
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->config);
if (PHP_VERSION_ID > 50400) {
$loader->load(__DIR__ . '/config/traits.yml');
}
}
作者:wouter
项目:eloquent-bundl
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(function (ContainerBuilder $container) {
$container->loadFromExtension('framework', ['secret' => 'abc123']);
$container->loadFromExtension('wouterj_eloquent', ['driver' => 'sqlite', 'database' => '%kernel.root_dir%/test.sqlite', 'aliases' => true, 'eloquent' => true]);
});
}
作者:netconstructo
项目:GoogleBundl
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
if (file_exists(__DIR__ . '/config/parameters.yml')) {
$loader->load(__DIR__ . '/config/parameters.yml');
}
}
作者:syliu
项目:syliu
/**
* @param ContainerBuilder $container
* @param LoaderInterface $loader
*/
private function prependHwiOauth(ContainerBuilder $container, LoaderInterface $loader)
{
if (!$container->hasExtension('hwi_oauth')) {
return;
}
$loader->load('services/integrations/hwi_oauth.xml');
}
作者:skr
项目:stac
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load($this->getRootDir() . "/conf/services_" . $this->getEnvironment() . ".yml");
if (file_exists($fileName = $this->getRootDir() . "/conf/services_local.yml")) {
$loader->load($fileName);
}
}