Lines Matching refs:dir
22 private $dir; variable in App\\Utils\\Cache
32 public function __construct(string $dir) argument
34 $this->dir = $dir;
37 if (!file_exists($this->dir)) {
38 mkdir($this->dir, 0777, true);
39 chmod($this->dir, 0777);
43 if (!is_dir($this->dir)) {
44 throw new \Exception($this->dir.' is not a valid directory.');
62 file_put_contents($this->dir.'/'.$key.'.php', $string);
74 $file = $this->dir.'/'.$key.'.php';
98 $file = $this->dir.'/'.$key.'.php';
119 foreach (new \DirectoryIterator($this->dir) as $fileInfo) {
141 $file = $this->dir.'/'.$key.'.php';