當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Kernel::initializeBundles方法代碼示例

本文整理匯總了PHP中Symfony\Component\HttpKernel\Kernel::initializeBundles方法的典型用法代碼示例。如果您正苦於以下問題:PHP Kernel::initializeBundles方法的具體用法?PHP Kernel::initializeBundles怎麽用?PHP Kernel::initializeBundles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Symfony\Component\HttpKernel\Kernel的用法示例。


在下文中一共展示了Kernel::initializeBundles方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initializeBundles

 /**
  * {@inheritdoc}
  */
 protected function initializeBundles()
 {
     parent::initializeBundles();
     // pass bundles to CumulativeResourceManager
     $bundles = array();
     foreach ($this->bundles as $name => $bundle) {
         $bundles[$name] = get_class($bundle);
     }
     CumulativeResourceManager::getInstance()->setBundles($bundles)->setAppRootDir($this->rootDir);
 }
開發者ID:antrampa,項目名稱:platform,代碼行數:13,代碼來源:OroKernel.php

示例2: initializeBundles

 protected function initializeBundles()
 {
     parent::initializeBundles();
     // pass bundles to BundleBag
     $bundles = array();
     foreach ($this->bundles as $name => $bundle) {
         $bundles[$name] = get_class($bundle);
     }
     BundleBag::getInstance()->setBundles($bundles)->setAppRootDir($this->rootDir);
 }
開發者ID:EvoCommerceTeam,項目名稱:DistribuitionBundle,代碼行數:10,代碼來源:EvoDistributionKernel.php

示例3: initializeBundles

 /**
  * Initializes the data structures related to the bundle management.
  *
  *  - the bundles property maps a bundle name to the bundle instance,
  *  - the bundleMap property maps a bundle name to the bundle inheritance hierarchy (most derived bundle first).
  *
  * @throws \LogicException if two bundles share a common name
  * @throws \LogicException if a bundle tries to extend a non-registered bundle
  * @throws \LogicException if a bundle tries to extend itself
  * @throws \LogicException if two bundles extend the same ancestor
  */
 protected function initializeBundles()
 {
     parent::initializeBundles();
     foreach ($this->registerBundles() as $bundle) {
         if (\method_exists($bundle, "extendBundle")) {
             $name = $bundle->getName();
             $extenBundle = $bundle->extendBundle();
             $this->bundleMap[$name][] = $this->bundles[$extenBundle];
         }
     }
 }
開發者ID:symbb,項目名稱:symbb,代碼行數:22,代碼來源:Kernel.php

示例4: initializeBundles

 public function initializeBundles()
 {
     parent::initializeBundles();
 }
開發者ID:d3ancole1995,項目名稱:symfony,代碼行數:4,代碼來源:KernelForTest.php

示例5: initializeBundles

 protected function initializeBundles()
 {
     parent::initializeBundles();
     $this->bundles['App'] = $bundle = $this->getAppBundle();
     $this->bundleMap['App'] = array($bundle);
 }
開發者ID:wouterj,項目名稱:bundleless,代碼行數:6,代碼來源:AppFocusedKernel.php


注:本文中的Symfony\Component\HttpKernel\Kernel::initializeBundles方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。