diff --git a/src/Renderer/FileRenderer.php b/src/Renderer/FileRenderer.php index 64ede0f..983d5c9 100755 --- a/src/Renderer/FileRenderer.php +++ b/src/Renderer/FileRenderer.php @@ -4,7 +4,7 @@ namespace PoP\FileStore\Renderer; -use PoP\FileStore\File\AbstractFile; +use PoP\FileStore\File\AbstractAccessibleRenderableFile; use PoP\FileStore\File\AbstractRenderableFileFragment; use PoP\FileStore\Store\FileStoreInterface; @@ -17,7 +17,7 @@ public function __construct(FileStoreInterface $fileStore, string $separator = P $this->fileStore = $fileStore; $this->separator = $separator; } - public function render(AbstractFile $file): string + public function render(AbstractAccessibleRenderableFile $file): string { // Render the content $renderedFragments = array_map(function ($fragment) { @@ -27,7 +27,7 @@ public function render(AbstractFile $file): string return implode($this->separator, $renderedFragments); } - public function renderAndSave(AbstractFile $file): void + public function renderAndSave(AbstractAccessibleRenderableFile $file): void { // Render and save the content $contents = $this->render($file); diff --git a/src/Renderer/FileRendererInterface.php b/src/Renderer/FileRendererInterface.php index a570d11..02f6b40 100755 --- a/src/Renderer/FileRendererInterface.php +++ b/src/Renderer/FileRendererInterface.php @@ -4,10 +4,10 @@ namespace PoP\FileStore\Renderer; -use PoP\FileStore\File\AbstractFile; +use PoP\FileStore\File\AbstractAccessibleRenderableFile; interface FileRendererInterface { - public function render(AbstractFile $file): string; - public function renderAndSave(AbstractFile $file): void; + public function render(AbstractAccessibleRenderableFile $file): string; + public function renderAndSave(AbstractAccessibleRenderableFile $file): void; }