Use Nameable

This commit is contained in:
2025-10-25 16:30:23 -04:00
parent 87b1a4fbb6
commit 659fd268d0
3 changed files with 6 additions and 3 deletions

View File

@@ -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": {

View File

@@ -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;
}

View File

@@ -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
{
}