/** * @param \GibbonCms\Gibbon\Filesystems\Filesystem $filesystem * @param string $directory * @param \GibbonCms\Gibbon\Filesystems\Cache $cache */ public function __construct(Filesystem $filesystem, $directory, Cache $cache) { $this->filesystem = $filesystem; $this->directory = $directory; $this->cache = $cache; $this->cache->rebuild(); $this->updateValues(); $this->yaml = new Yaml(); }
/** * Constructor method injects all dependencies * * @param \GibbonCms\Gibbon\Filesystems\Filesystem $filesystem * @param string $directory * @param \GibbonCms\Gibbon\Filesystems\Cache $cache * @param \GibbonCms\Gibbon\Factories\Factory $factory * @param bool $recursive */ public function __construct(Filesystem $filesystem, $directory, Cache $cache, Factory $factory, $recursive = false) { $this->filesystem = $filesystem; $this->directory = $directory; $this->cache = $cache; $this->factory = $factory; $this->recursive = $recursive; $this->cache->rebuild(); }