Пример #1
0
 /**
  * @param  \Codex\Codex\Project                   $project
  * @param  Filesystem                             $files
  * @param  \Illuminate\Contracts\Cache\Repository $cache
  * @param  string                                 $path
  * @return void
  * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  */
 public function __construct(Project $project, Filesystem $files, Cache $cache, $path)
 {
     $this->cache = $cache;
     $this->files = $files;
     $this->path = $path;
     $this->project = $project;
     Factory::run('menu:ready', [$this]);
     $this->raw = $files->get($path);
     $this->menu = $this->parse($this->raw);
     Factory::run('menu:done', [$this]);
 }