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


PHP Bundle::build方法代碼示例

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


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

示例1: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ThemeCompilerPass());
     $container->addCompilerPass(new TemplateResourcesPass());
     $container->addCompilerPass(new AsseticTwigFormulaPass());
 }
開發者ID:xabbuh,項目名稱:LiipThemeBundle,代碼行數:7,代碼來源:LiipThemeBundle.php

示例2: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new LoadersCompilerPass());
     // Disable create cache directories for now; it's not needed anyway (structure is being created on the run).
     //            ->addCompilerPass(new CreateCacheDirectoriesCompilerPass(), PassConfig::TYPE_AFTER_REMOVING);
 }
開發者ID:jmcclell,項目名稱:AvalancheImagineBundle,代碼行數:7,代碼來源:AvalancheImagineBundle.php

示例3: build

 /**
  * @param ContainerBuilder $container
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ThemeRepositoryPass());
     $container->addCompilerPass(new ThemeAwareSourcesPass());
     $container->addCompilerPass(new ThemeAwareLoaderDecoratorPass());
 }
開發者ID:benakacha,項目名稱:Sylius,代碼行數:10,代碼來源:SyliusThemeBundle.php

示例4: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $passConfig = $container->getCompilerPassConfig();
     $passConfig->addPass(new AddAfterInvocationProvidersPass());
     $passConfig->addPass(new SecureMethodInvocationsPass($container->getParameter('kernel.cache_dir')), PassConfig::TYPE_BEFORE_REMOVING);
 }
開發者ID:nickaggarwal,項目名稱:sample-symfony2,代碼行數:7,代碼來源:JMSSecurityExtraBundle.php

示例5: build

 /**
  * Builds the bundle.
  *
  * It is only ever called once when the cache is empty.
  *
  * This method can be overridden to register compilation passes,
  * other extensions, ...
  *
  * @param ContainerBuilder $container A ContainerBuilder instance
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ThemeCompilerPass());
     $container->addCompilerPass(new TemplateResourcesPass());
     $container->addCompilerPass(new AddResolversPass());
 }
開發者ID:geoffreytran,項目名稱:zym,代碼行數:17,代碼來源:ZymThemeBundle.php

示例6: build

 /**
  * @inheritdoc
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     // add module pass
     $container->addCompilerPass(new ModuleCompilerPass());
     $container->addCompilerPass(new ComponentCompilerPass());
 }
開發者ID:linestorm,項目名稱:linestorm-cms,代碼行數:10,代碼來源:LineStormCmsBundle.php

示例7: build

 /**
  * {@inheritdoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new AutocompleteCompilerPass());
     $container->addCompilerPass(new FormCompilerPass());
     $container->addCompilerPass(new FormGuesserCompilerPass());
 }
開發者ID:Maksold,項目名稱:platform,代碼行數:10,代碼來源:OroFormBundle.php

示例8: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $extension = $container->getExtension('security');
     $factory = new Factory();
     $extension->addSecurityListenerFactory($factory);
 }
開發者ID:xphere,項目名稱:one-time-access-bundle,代碼行數:7,代碼來源:xPheReOneTimeAccessBundle.php

示例9: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new Compiler\AutoRegisterServicesPass());
     $container->addCompilerPass(new Compiler\MappingCompilerPass());
     $container->addCompilerPass(new Compiler\ConfigureDynamicRoutingPass());
 }
開發者ID:Newman101,項目名稱:WellCommerce,代碼行數:7,代碼來源:WellCommercePageBundle.php

示例10: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     /** @var $extension DependencyInjection\TestExtension */
     $extension = $container->getExtension('test');
     $extension->setCustomConfig(new CustomConfig());
 }
開發者ID:BusinessCookies,項目名稱:CoffeeMachineProject,代碼行數:7,代碼來源:TestBundle.php

示例11: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new TemplatingPass());
     $container->addCompilerPass(new AssetManagerPass());
     $container->addCompilerPass(new FilterManagerPass());
 }
開發者ID:rooster,項目名稱:symfony,代碼行數:7,代碼來源:AsseticBundle.php

示例12: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new ServicePass());
     $container->addCompilerPass(new AdapterPass());
     $this->buildPhpcrCompilerPass($container);
 }
開發者ID:frogriotcom,項目名稱:RoutingAutoBundle,代碼行數:7,代碼來源:CmfRoutingAutoBundle.php

示例13: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new TwigEnvironmentPass());
     $container->addCompilerPass(new TwigLoaderPass());
     $container->addCompilerPass(new ExceptionListenerPass());
 }
開發者ID:ronaldlunaramos,項目名稱:webstore,代碼行數:7,代碼來源:TwigBundle.php

示例14: build

 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     $container->addCompilerPass(new Compiler\AutoRegisterServicesPass());
     $container->addCompilerPass(new Compiler\MappingCompilerPass());
     $container->addCompilerPass(new Compiler\LayoutBoxConfiguratorPass());
 }
開發者ID:Newman101,項目名稱:WellCommerce,代碼行數:7,代碼來源:WellCommerceLayoutBundle.php

示例15: build

 /**
  * {@inheritDoc}
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     /** @var $extension \Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension */
     $extension = $container->getExtension('payum');
     $extension->addGatewayFactory(new RedsysGatewayFactory());
 }
開發者ID:partkeepr,項目名稱:PayumBundleSandbox,代碼行數:10,代碼來源:AcmeRedsysBundle.php


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