/**
  * @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);
 }
 public function __construct($name, $templating, $template = null)
 {
     if ($template) {
         $this->template = $template;
     }
     parent::__construct($name, $templating);
 }
 /**
  * @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);
 }
 /**
  * @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);
 }
Example #5
0
 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);
 }
 public function __construct($name, EngineInterface $templating, EntityManager $entityManager, Session $session, $sessionKey)
 {
     parent::__construct($name, $templating);
     $this->entityManager = $entityManager;
     $this->session = $session;
     $this->sessionKey = $sessionKey;
 }
 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;
 }
 /**
  * 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;
 }
 /**
  * @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;
     }
 }
 /**
  * @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);
 }
 /**
  * @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;
     }
 }
 /**
  * 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);
 }
 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;
 }
 /**
  * @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;
 }
 /**
  * @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);
 }
 public function __construct($name, EngineInterface $templating, EntityManager $entityManager, Session $session, $schoolSessionKey, $orgSessionKey, $securityContext)
 {
     parent::__construct($name, $templating);
     $this->entityManager = $entityManager;
     $this->session = $session;
     $this->orgSessionKey = $orgSessionKey;
     $this->schoolSessionKey = $schoolSessionKey;
     $this->securityContext = $securityContext;
 }
 public function __construct($name, $templating, $template, DocumentManager $dm, PublishWorkflowChecker $publishWorkflowChecker)
 {
     if ($template) {
         $this->template = $template;
     }
     parent::__construct($name, $templating);
     $this->dm = $dm;
     $this->publishWorkflowChecker = $publishWorkflowChecker;
 }
 /** 
  * 
  * @DI\InjectParams({
  *     "templating" =  @DI\Inject("templating"),
  *     "formFactory" = @DI\Inject("form.factory"),
  *     "requestStack" = @DI\Inject("request_stack"),
  *     "cloudinaryManager" = @DI\Inject("app.component.cloudinarymanager"),
  *     "siteSettingManager" = @DI\Inject("app.component.sitesettingmanager")
  * })     
  */
 public function __construct( EngineInterface $templating,  FormFactory $formFactory, RequestStack $requestStack,
         CloudinaryManager $cloudinaryManager, SiteSettingManager $siteSettingManager)
 {
     parent::__construct('site_settings', $templating);
     $this->formFactory = $formFactory;
     $this->request = $requestStack->getCurrentRequest();
     $this->cloudinaryManager = $cloudinaryManager;
     $this->siteSettingManager = $siteSettingManager;
     
 }
 /**
  * @param string           $name
  * @param EngineInterface  $templating
  * @param ManagerInterface $manager
  * @param Pool             $adminPool
  */
 public function __construct($name, EngineInterface $templating, ManagerInterface $manager, Pool $adminPool = null)
 {
     $this->manager = $manager;
     $this->adminPool = $adminPool;
     parent::__construct($name, $templating);
 }
 public function __construct($name, $templating, EntityManager $entityManager)
 {
     parent::__construct($name, $templating);
     $this->em = $entityManager;
 }
 /**
  * @param string          $name
  * @param EngineInterface $templating
  * @param Pool            $productPool
  */
 public function __construct($name, EngineInterface $templating, Pool $productPool, FormFactoryInterface $formFactory)
 {
     parent::__construct($name, $templating);
     $this->pool = $productPool;
     $this->formFactory = $formFactory;
 }
 /**
  * @param string                                                     $name
  * @param \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating
  * @param \Sonata\AdminBundle\Admin\Pool                             $pool
  */
 public function __construct($name, EngineInterface $templating, Pool $pool)
 {
     parent::__construct($name, $templating);
     $this->pool = $pool;
 }
 /**
  * @param string          $name
  * @param EngineInterface $templating
  * @param Pool            $pool
  * @param SearchHandler   $searchHandler
  */
 public function __construct($name, EngineInterface $templating, Pool $pool, SearchHandler $searchHandler)
 {
     parent::__construct($name, $templating);
     $this->pool = $pool;
     $this->searchHandler = $searchHandler;
 }
Example #24
0
 public function __construct($name, EngineInterface $templating, EntityManager $em, RequestStack $requestStack)
 {
     $this->em = $em;
     $this->request = $requestStack->getCurrentRequest();
     parent::__construct($name, $templating);
 }
 /**
  * @param string                       $name
  * @param EngineInterface              $templating
  * @param BlockRendererInterface       $blockRenderer
  * @param BlockContextManagerInterface $blockContextManager
  */
 public function __construct($name, EngineInterface $templating, BlockRendererInterface $blockRenderer, BlockContextManagerInterface $blockContextManager)
 {
     parent::__construct($name, $templating);
     $this->blockRenderer = $blockRenderer;
     $this->blockContextManager = $blockContextManager;
 }
 /**
  * @param string             $name
  * @param EngineInterface    $templating
  * @param ContainerInterface $container
  * @param ManagerInterface   $galleryManager
  */
 public function __construct($name, EngineInterface $templating, ContainerInterface $container, ManagerInterface $galleryManager)
 {
     parent::__construct($name, $templating);
     $this->galleryManager = $galleryManager;
     $this->container = $container;
 }
 /**
  * @param string $name
  * @param EngineInterface $templating
  * @param array $defaults
  */
 public function __construct($name, EngineInterface $templating, array $defaults = array())
 {
     parent::__construct($name, $templating);
     $this->defaults = $defaults;
 }
 /**
  * @param string          $name
  * @param EngineInterface $templating
  * @param FragmentHandler $renderer
  */
 public function __construct($name, EngineInterface $templating, FragmentHandler $renderer)
 {
     parent::__construct($name, $templating);
     $this->renderer = $renderer;
 }
Example #29
0
 public function __construct($name, EngineInterface $templating, EntityManager $entityManager, Container $container)
 {
     parent::__construct($name, $templating);
     $this->container = $container;
     $this->em = $entityManager;
 }
 /**
  * @param string                                                    $name
  * @param \Symfony\Component\Templating\EngineInterface             $templating
  * @param \Sonata\PageBundle\Site\SiteSelectorInterface             $siteSelector
  * @param \Sonata\PageBundle\CmsManager\CmsManagerSelectorInterface $cmsManagerSelector
  */
 public function __construct($name, EngineInterface $templating, SiteSelectorInterface $siteSelector, CmsManagerSelectorInterface $cmsManagerSelector)
 {
     parent::__construct($name, $templating);
     $this->siteSelector = $siteSelector;
     $this->cmsManagerSelector = $cmsManagerSelector;
 }