Beispiel #1
0
 /**
  * @param FormInterface     $form
  * @param Request           $request
  * @param UserManager       $manager
  * @param DelegatingEngine  $templating
  * @param ConfigManager     $cm
  * @param \Swift_Mailer     $mailer
  * @param FlashBagInterface $flashBag
  * @param Translator        $translator
  * @param LoggerInterface   $logger
  */
 public function __construct(FormInterface $form, Request $request, UserManager $manager, ConfigManager $cm = null, DelegatingEngine $templating = null, \Swift_Mailer $mailer = null, FlashBagInterface $flashBag = null, Translator $translator = null, LoggerInterface $logger = null)
 {
     parent::__construct($form, $request, $manager);
     $this->templating = $templating;
     $this->cm = $cm;
     $this->mailer = $mailer;
     $this->flashBag = $flashBag;
     $this->translator = $translator;
     $this->logger = $logger;
 }
Beispiel #2
0
 /**
  * @param FormInterface     $form
  * @param Request           $request
  * @param UserManager       $manager
  * @param UserConfigManager $userConfigManager
  * @param ConfigManager     $cm
  * @param DelegatingEngine  $templating
  * @param \Swift_Mailer     $mailer
  * @param FlashBagInterface $flashBag
  * @param Translator        $translator
  * @param LoggerInterface   $logger
  * @param ServiceLink       $serviceLink
  */
 public function __construct(FormInterface $form, Request $request, UserManager $manager, UserConfigManager $userConfigManager = null, ConfigManager $cm = null, DelegatingEngine $templating = null, \Swift_Mailer $mailer = null, FlashBagInterface $flashBag = null, Translator $translator = null, LoggerInterface $logger = null, ServiceLink $serviceLink = null)
 {
     parent::__construct($form, $request, $manager);
     $this->userConfigManager = $userConfigManager;
     $this->templating = $templating;
     $this->cm = $cm;
     $this->mailer = $mailer;
     $this->flashBag = $flashBag;
     $this->translator = $translator;
     $this->logger = $logger;
     if ($serviceLink !== null) {
         $this->securityFacade = $serviceLink->getService();
     }
 }