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