refactor: Return a string instead of a resource.

This commit is contained in:
Pol Dellaiera
2022-03-08 15:46:31 +01:00
parent b8992b8eeb
commit 8abed67e1c
2 changed files with 33 additions and 20 deletions

View File

@@ -13,10 +13,5 @@ namespace Chill\DocGeneratorBundle\GeneratorDriver;
interface DriverInterface
{
/**
* @param resource $template
*
* @return resource
*/
public function generateFromResource($template, string $resourceType, array $data, ?string $templateName = null);
public function generateFromString(string $template, string $resourceType, array $data, ?string $templateName = null): string;
}