diff --git a/composer.json b/composer.json index 771d505..a136c83 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,8 @@ "require": { "php": "^8.4", "potter/renderable": "dev-main", - "potter/template": "dev-main" + "potter/template": "dev-main", + "potter/nameable": "dev-main" }, "license": "MIT", "autoload": { diff --git a/src/Potter/Document/AbstractDocument.php b/src/Potter/Document/AbstractDocument.php index 82708f8..ead4140 100644 --- a/src/Potter/Document/AbstractDocument.php +++ b/src/Potter/Document/AbstractDocument.php @@ -4,10 +4,11 @@ declare(strict_types=1); namespace Potter\Document; +use \Potter\Nameable\NameableTrait; use \Potter\Renderable\Renderable; use \Potter\Template\Engine\Aware\TemplateEngineAwareTrait; abstract class AbstractDocument extends Renderable implements DocumentInterface { - use TemplateEngineAwareTrait; + use NameableTrait, TemplateEngineAwareTrait; } diff --git a/src/Potter/Document/DocumentInterface.php b/src/Potter/Document/DocumentInterface.php index b0b4bdc..509a018 100644 --- a/src/Potter/Document/DocumentInterface.php +++ b/src/Potter/Document/DocumentInterface.php @@ -4,10 +4,11 @@ declare(strict_types=1); namespace Potter\Document; +use \Potter\Nameable\NameableInterface; use \Potter\Renderable\RenderableInterface; use \Potter\Template\Engine\Aware\TemplateEngineAwareInterface; -interface DocumentInterface extends RenderableInterface, TemplateEngineAwareInterface +interface DocumentInterface extends NameableInterface, RenderableInterface, TemplateEngineAwareInterface { }