get('defaultPermissions'); } $this->fileManager = new FileManager($defaultPermissionsToSet); } public function setConfig(Config $config) { $this->fileManager = new FileManager( $config->get('defaultPermissions') ); } public function isFile(string $filePath): bool { return $this->fileManager->isFile($filePath); } protected function putPhpContentsInternal(string $path, array $data, bool $useRenaming = false) { $result = $this->fileManager->putPhpContents($path, $data, true, $useRenaming); if ($result === false) { throw new RuntimeException(); } } public function putPhpContents(string $path, array $data) { $this->putPhpContentsInternal($path, $data, true); } public function putPhpContentsNoRenaming(string $path, array $data) { $this->putPhpContentsInternal($path, $data, false); } public function getPhpContents(string $path) { return $this->fileManager->getPhpContents($path); } }