當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。