public function __construct(NavigationInterface $navigation, PlatformSettings $adminSettings, SessionInterface $session) { parent::__construct(); $this->navigation = $navigation; $this->adminSettings = $adminSettings; $this->session = $session; }
public function __construct(Locale $locale) { parent::__construct(); $this->locale = $locale; }
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(); }