コード例 #1
0
 public function __construct(NavigationInterface $navigation, PlatformSettings $adminSettings, SessionInterface $session)
 {
     parent::__construct();
     $this->navigation = $navigation;
     $this->adminSettings = $adminSettings;
     $this->session = $session;
 }
コード例 #2
0
 public function __construct(Locale $locale)
 {
     parent::__construct();
     $this->locale = $locale;
 }
コード例 #3
0
 function __construct(InjectorInterface $injector, KernelSettings $kernelSettings, RedirectionInterface $redirection, NavigationInterface $navigation, ModelControllerInterface $modelController, MatisseSettings $matisseSettings)
 {
     parent::__construct();
     $this->injector = $injector;
     $this->kernelSettings = $kernelSettings;
     $this->redirection = $redirection;
     $this->navigation = $navigation;
     $this->modelController = $modelController;
     $this->matisseSettings = $matisseSettings;
     // Inject extra dependencies into the subclasses' inject methods, if one or more exist.
     $this->polyInject();
 }