コード例 #1
0
ファイル: Projects.php プロジェクト: codexproject/core
 /**
  * Projects constructor.
  *
  * @param \Codex\Codex $parent
  * @param \Laradic\Support\Filesystem         $files
  */
 public function __construct(Codex $parent, Filesystem $files)
 {
     parent::__construct();
     $this->setCodex($parent);
     $this->setContainer($parent->getContainer());
     $this->setFiles($files);
     $this->hookPoint('projects:construct', [$this]);
     $this->findAndRegisterAll();
     $this->hookPoint('projects:constructed', [$this]);
 }
コード例 #2
0
ファイル: Menus.php プロジェクト: codexproject/core
 /**
  * Menus constructor.
  *
  * @param \Codex\Codex                               $parent
  * @param \Illuminate\Routing\Router                 $router
  * @param \Illuminate\Contracts\Routing\UrlGenerator $url
  * @param \Illuminate\Contracts\View\View            $view
  */
 public function __construct(Codex $parent, Router $router, Cache $cache, UrlGenerator $url, View $view)
 {
     parent::__construct();
     $this->setCodex($parent);
     $this->setFiles($parent->getFiles());
     $this->cache = $cache;
     $this->router = $router;
     $this->url = $url;
     $this->view = $view;
     $this->hookPoint('menus:constructed', [$this]);
 }
コード例 #3
0
ファイル: Refs.php プロジェクト: codexproject/core
 /**
  * Projects constructor.
  *
  * @param \Codex\Codex                $parent
  * @param \Laradic\Support\Filesystem $files
  */
 public function __construct(Project $parent)
 {
     parent::__construct();
     $this->setCodex($parent->getCodex());
     $this->setContainer($parent->getContainer());
     $this->setFiles($parent->getFiles());
     $this->project = $parent;
     $this->hookPoint('refs:construct', [$this]);
     $this->resolveRefs();
     $this->hookPoint('refs:constructed', [$this]);
 }