public function __construct(Session $session, PageFactoryInterface $pageFactory, array $parameters = array()) { parent::__construct($session, $pageFactory, $parameters); // this should obviously be configurable, but I've put this in to ensure that we are able // to always see the save button. $this->getDriver()->resizeWindow(1280, 800); }
/** * @param Session $session * @param Factory $factory * @param array $parameters * @param RouterInterface $router */ public function __construct(Session $session, Factory $factory, array $parameters = array(), RouterInterface $router) { parent::__construct($session, $factory, $parameters); $this->router = $router; }
/** * A bit of a hack, we require the Session to create instances of Notice, so we store it here * @param NodeElement $node * @param Session $session */ public function __construct(Session $session, Factory $factory, array $parameters = array()) { parent::__construct($session, $factory, $parameters); $this->session = $session; }