directory = \rtrim($directory, '\\/') . '/'; parent::__construct($directory, $options); } public function generateKey(string $name, string $className): string { $hash = \hash('sha256', $className); return $this->directory . $hash[0] . $hash[1] . '/' . $hash . '.php'; } }