当前位置: 首页>>代码示例>>PHP>>正文


PHP Loader\LoaderInterface类代码示例

本文整理汇总了PHP中Symfony\Component\Config\Loader\LoaderInterface的典型用法代码示例。如果您正苦于以下问题:PHP LoaderInterface类的具体用法?PHP LoaderInterface怎么用?PHP LoaderInterface使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了LoaderInterface类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: registerContainerConfiguration

 /**
  * 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);
     }
 }
开发者ID:letchik,项目名称:VendPheatBundle,代码行数:13,代码来源:AppKernel.php

示例2: registerContainerConfiguration

 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);
     }
 }
开发者ID:knplabs,项目名称:rad-edition,代码行数:7,代码来源:AppKernel.php

示例3: registerContainerConfiguration

 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $file = $this->getRootDir() . '/config.yml';
     $contents = Yaml::dump($this->_config);
     file_put_contents($file, $contents);
     $loader->load($file);
 }
开发者ID:mrubiosan,项目名称:facade,代码行数:7,代码来源:AppKernel.php

示例4: registerContainerConfiguration

 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
     if (null !== $this->devConfig) {
         $loader->load($this->devConfig);
     }
 }
开发者ID:neilferreira,项目名称:symfony-standard,代码行数:7,代码来源:AppKernel.php

示例5: registerContainerConfiguration

 /**
  * {@inheritdoc}
  */
 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $loader->load(__DIR__ . '/config.yml');
     if (is_callable($this->configCallback)) {
         $loader->load($this->configCallback);
     }
 }
开发者ID:ramunasd,项目名称:MigrationBundle,代码行数:10,代码来源:Kernel.php

示例6: registerContainerConfiguration

 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');
 }
开发者ID:Onneil,项目名称:dedipanel,代码行数:7,代码来源:AppKernel.php

示例7: registerContainerConfiguration

 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);
 }
开发者ID:rfc1483,项目名称:blog,代码行数:7,代码来源:AppKernel.php

示例8: registerContainerConfiguration

 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $loader->load(__DIR__ . '/config/config_plugin.yml');
     foreach ($this->pluginAdapter->getConfigurationFiles() as $file) {
         $loader->load($file);
     }
 }
开发者ID:orourkedd,项目名称:symfony-plugin,代码行数:7,代码来源:AppKernel.php

示例9: registerContainerConfiguration

 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);
     });
 }
开发者ID:petforsberg,项目名称:WamBundle,代码行数:7,代码来源:AppKernel.php

示例10: registerContainerConfiguration

 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $loader->load($this->getRootDir() . '/config/config.yml');
     if ($this->isDebug()) {
         $loader->load($this->getRootDir() . '/config/config_dbg.yml');
     }
 }
开发者ID:adriensamson,项目名称:symfony-tiny-edition,代码行数:7,代码来源:AppKernel.php

示例11: registerContainerConfiguration

 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $loader->load(SuluTestBundle::getConfigDir() . '/config.php');
     if (class_exists('Sulu\\Bundle\\SearchBundle\\SuluSearchBundle')) {
         $loader->load(__DIR__ . '/config/search.yml');
     }
 }
开发者ID:kriswillis,项目名称:sulu,代码行数:7,代码来源:AppKernel.php

示例12: registerContainerConfiguration

 public function registerContainerConfiguration(LoaderInterface $loader)
 {
     $loader->load(__DIR__ . '/config/config.php');
     if ($this->getEnvironment() !== 'behat' && file_exists(ResourceContext::getConfigurationFile())) {
         $loader->import(ResourceContext::getConfigurationFile());
     }
 }
开发者ID:frogriotcom,项目名称:ResourceRestBundle,代码行数:7,代码来源:AppKernel.php

示例13: registerContainerConfiguration

 /**
  * 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');
 }
开发者ID:scaytrase,项目名称:symfony-sms-interface,代码行数:14,代码来源:KernelForTest.php

示例14: configureContainer

 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]);
     }
 }
开发者ID:sikofitt,项目名称:symfony-micro,代码行数:7,代码来源:AppKernel.php

示例15: registerContainerConfiguration

 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');
     }
 }
开发者ID:ABD-dev,项目名称:NelmioApiDocBundle,代码行数:7,代码来源:AppKernel.php


注:本文中的Symfony\Component\Config\Loader\LoaderInterface类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。