PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` files = $files; $this->path = $path; $this->manifestPath = $manifestPath; } public function find($alias) { $manifest = $this->getManifest(); return $manifest[$alias] ?? $manifest["{$alias}.index"] ?? null; } public function getManifest() { if (! is_null($this->manifest)) { return $this->manifest; } if (! file_exists($this->manifestPath)) { $this->build(); } return $this->manifest = $this->files->getRequire($this->manifestPath); } public function build() { $this->manifest = $this->getClassNames() ->mapWithKeys(function ($class) { return [$class::getName() => $class]; })->toArray(); $this->write($this->manifest); return $this; } protected function write(array $manifest) { if (! is_writable(dirname($this->manifestPath))) { throw new Exception('The '.dirname($this->manifestPath).' directory must be present and writable.'); } $this->files->put($this->manifestPath, 'files->allFiles($this->path)) ->map(function (SplFileInfo $file) { return app()->getNamespace(). str($file->getPathname()) ->after(app_path().'/') ->replace(['/', '.php'], ['\\', ''])->__toString(); }) ->filter(function (string $class) { return is_subclass_of($class, Component::class) && ! (new ReflectionClass($class))->isAbstract(); }); } }