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


PHP Block\BaseBlockService类代码示例

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


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

示例1: __construct

 /**
  * @param string                   $name
  * @param EngineInterface          $templating
  * @param ActionManagerInterface   $actionManager
  * @param TimelineManagerInterface $timelineManager
  * @param SecurityContextInterface $securityContext
  */
 public function __construct($name, EngineInterface $templating, ActionManagerInterface $actionManager, TimelineManagerInterface $timelineManager, SecurityContextInterface $securityContext)
 {
     $this->actionManager = $actionManager;
     $this->timelineManager = $timelineManager;
     $this->securityContext = $securityContext;
     parent::__construct($name, $templating);
 }
开发者ID:saberyounis,项目名称:Sonata-Project,代码行数:14,代码来源:TimelineBlock.php

示例2: __construct

 public function __construct($name, $templating, $template = null)
 {
     if ($template) {
         $this->template = $template;
     }
     parent::__construct($name, $templating);
 }
开发者ID:xxspartan16,项目名称:BMS-Market,代码行数:7,代码来源:SimpleBlockService.php

示例3: __construct

 /**
  * @param string                    $name
  * @param EngineInterface           $templating
  * @param RegistryInterface         $registry
  * @param CurrencyDetectorInterface $currencyDetector
  * @param ProductFinderInterface    $productFinder
  * @param string                    $productClass
  */
 public function __construct($name, EngineInterface $templating, RegistryInterface $registry, CurrencyDetectorInterface $currencyDetector, ProductFinderInterface $productFinder, $productClass)
 {
     $this->productRepository = $registry->getManager()->getRepository($productClass);
     $this->currencyDetector = $currencyDetector;
     $this->productFinder = $productFinder;
     parent::__construct($name, $templating);
 }
开发者ID:sonata-project,项目名称:ecommerce,代码行数:15,代码来源:SimilarProductsBlockService.php

示例4: __construct

 /**
  * @param string                   $name
  * @param EngineInterface          $templating
  * @param OrderManagerInterface    $orderManager
  * @param CustomerManagerInterface $customerManager
  * @param SecurityContextInterface $securityContext
  */
 public function __construct($name, EngineInterface $templating, OrderManagerInterface $orderManager, CustomerManagerInterface $customerManager, SecurityContextInterface $securityContext)
 {
     $this->orderManager = $orderManager;
     $this->customerManager = $customerManager;
     $this->securityContext = $securityContext;
     parent::__construct($name, $templating);
 }
开发者ID:lzdv,项目名称:ecommerce,代码行数:14,代码来源:RecentOrdersBlockService.php

示例5: __construct

 public function __construct($name, EngineInterface $templating, EntityManager $em, ManagerInterface $mediaManager, ContainerInterface $container)
 {
     $this->em = $em;
     $this->container = $container;
     $this->mediaManager = $mediaManager;
     parent::__construct($name, $templating);
 }
开发者ID:kinkinweb,项目名称:lhvb,代码行数:7,代码来源:BureauBlockService.php

示例6: __construct

 public function __construct($name, EngineInterface $templating, EntityManager $entityManager, Session $session, $sessionKey)
 {
     parent::__construct($name, $templating);
     $this->entityManager = $entityManager;
     $this->session = $session;
     $this->sessionKey = $sessionKey;
 }
开发者ID:sgh1986915,项目名称:symfony-tsk,代码行数:7,代码来源:OrgSwitcherBlockService.php

示例7: __construct

 public function __construct($name, EngineInterface $templating, Pool $pool, EntityManager $em, SecurityContext $securityContext)
 {
     parent::__construct($name, $templating);
     $this->pool = $pool;
     $this->em = $em;
     $this->securityContext = $securityContext;
 }
开发者ID:WildCodeSchool,项目名称:projet-intranet_hopital,代码行数:7,代码来源:StatTenueBlockService.php

示例8: __construct

 /**
  * StatElevesBlockService constructor.
  * @param string $name
  * @param EngineInterface $templating
  * @param Pool $pool
  * @param EntityManager $em
  * @param DateNow $dateNow
  */
 public function __construct($name, EngineInterface $templating, Pool $pool, EntityManager $em, DateNow $dateNow)
 {
     parent::__construct($name, $templating);
     $this->pool = $pool;
     $this->em = $em;
     $this->date_now_service = $dateNow;
 }
开发者ID:WildCodeSchool,项目名称:projet-gesty,代码行数:15,代码来源:StatElevesBlockService.php

示例9: __construct

 /**
  * @param string          $name
  * @param EngineInterface $templating
  * @param string          $template
  */
 public function __construct($name, EngineInterface $templating, $template = null)
 {
     parent::__construct($name, $templating);
     if ($template) {
         $this->template = $template;
     }
 }
开发者ID:nvbooster,项目名称:StarterBundle,代码行数:12,代码来源:UnitBlockServiceBase.php

示例10: __construct

 /**
  * @param string                    $name
  * @param EngineInterface           $templating
  * @param RegistryInterface         $registry
  * @param CurrencyDetectorInterface $currencyDetector
  * @param ProductFinderInterface    $productFinder
  */
 public function __construct($name, EngineInterface $templating, RegistryInterface $registry, CurrencyDetectorInterface $currencyDetector, ProductFinderInterface $productFinder)
 {
     $this->productRepository = $registry->getManager()->getRepository('Application\\Sonata\\ProductBundle\\Entity\\Product');
     $this->currencyDetector = $currencyDetector;
     $this->productFinder = $productFinder;
     parent::__construct($name, $templating);
 }
开发者ID:saberyounis,项目名称:Sonata-Project,代码行数:14,代码来源:SimilarProductsBlockService.php

示例11: __construct

 /**
  * @param string                 $name
  * @param EngineInterface        $templating
  * @param BlockRendererInterface $blockRenderer
  * @param string|null            $template      To overwrite the default template.
  */
 public function __construct($name, EngineInterface $templating, BlockRendererInterface $blockRenderer, $template = null)
 {
     parent::__construct($name, $templating);
     $this->blockRenderer = $blockRenderer;
     if ($template) {
         $this->template = $template;
     }
 }
开发者ID:nvbooster,项目名称:BlockBundle,代码行数:14,代码来源:ContainerBlockService.php

示例12: __construct

 /**
  * YouTubeBlockService constructor.
  * @param string $name
  * @param EngineInterface $templating
  * @param YouTubeApiService $youTubeApi
  * @param RequestStack $requestStack
  * @param GoogleRedirectService $redirectService
  * @throws \Martin1982\LiveBroadcastBundle\Exception\LiveBroadcastOutputException
  */
 public function __construct($name, EngineInterface $templating, YouTubeApiService $youTubeApi, RequestStack $requestStack, GoogleRedirectService $redirectService)
 {
     $this->youTubeApi = $youTubeApi;
     $this->requestStack = $requestStack;
     $redirectUri = $redirectService->getOAuthRedirectUrl();
     $this->youTubeApi->initApiClients($redirectUri);
     parent::__construct($name, $templating);
 }
开发者ID:martin1982,项目名称:live-broadcast-bundle,代码行数:17,代码来源:YouTubeBlockService.php

示例13: __construct

 public function __construct($name, EngineInterface $templating, EntityManager $entityManager, Session $session, $formFactory, $securityContext)
 {
     parent::__construct($name, $templating);
     $this->entityManager = $entityManager;
     $this->session = $session;
     $this->formFactory = $formFactory;
     $this->securityContext = $securityContext;
 }
开发者ID:sgh1986915,项目名称:symfony-tsk,代码行数:8,代码来源:ErpContextSwitcherBlockService.php

示例14: __construct

 /**
  * @param string $name
  * @param EngineInterface $templating
  * @param ContainerInterface $container
  */
 public function __construct($name, EngineInterface $templating, ManagerInterface $manager, ManagerInterface $collectionManager, $translator, $context)
 {
     parent::__construct($name, $templating);
     $this->collectionManager = $collectionManager;
     $this->translator = $translator;
     $this->manager = $manager;
     $this->context = $context;
 }
开发者ID:bruery,项目名称:platform,代码行数:13,代码来源:ProfileAgeDemogrphicsBlockService.php

示例15: __construct

 /**
  * @param string           $name
  * @param EngineInterface  $templating
  * @param ManagerInterface $postManager
  * @param Pool             $adminPool
  */
 public function __construct($name, EngineInterface $templating, ManagerInterface $postManager, Pool $adminPool = null)
 {
     if (!$postManager instanceof PostManagerInterface) {
         @trigger_error('Calling the ' . __METHOD__ . ' method with a Sonata\\CoreBundle\\Model\\ManagerInterface is deprecated since version 2.4 and will be removed in 3.0. Use the new signature with a Sonata\\NewsBundle\\Model\\PostManagerInterface instead.', E_USER_DEPRECATED);
     }
     $this->manager = $postManager;
     $this->adminPool = $adminPool;
     parent::__construct($name, $templating);
 }
开发者ID:Neodork,项目名称:SonataNewsBundle,代码行数:15,代码来源:RecentPostsBlockService.php


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