/** * ApiController constructor. * * @param \Codex\Codex $codex * @param \Illuminate\Contracts\View\Factory $view */ public function __construct(Codex $codex, ViewFactory $view) { parent::__construct($codex, $view); $this->codex = $codex; $this->addons = $this->codex->addons; $this->projects = $this->codex->projects; $this->menus = $this->codex->menus; }
/** * CodexController constructor. * * @param \Codex\Codex $codex * @param \Illuminate\Contracts\View\Factory $view */ public function __construct(Codex $codex, View $view) { parent::__construct($codex, $view); }
/** * CodexController constructor. * * @param \Codex\Codex $codex * @param \Illuminate\Contracts\View\Factory $view */ public function __construct(Codex $codex, View $view) { $this->hookPoint('controller:construct', [$codex, $view]); parent::__construct($codex, $view); $this->hookPoint('controller:constructed', [$codex, $view]); }