Compare commits

...

3 Commits

Author SHA1 Message Date
659fd268d0 Use Nameable 2025-10-25 16:30:23 -04:00
87b1a4fbb6 Use TemplateEngineAware 2025-10-25 15:40:41 -04:00
519917eb0a require potter/template 2025-10-25 15:39:05 -04:00
3 changed files with 9 additions and 3 deletions

View File

@@ -3,7 +3,9 @@
"type": "library", "type": "library",
"require": { "require": {
"php": "^8.4", "php": "^8.4",
"potter/renderable": "dev-main" "potter/renderable": "dev-main",
"potter/template": "dev-main",
"potter/nameable": "dev-main"
}, },
"license": "MIT", "license": "MIT",
"autoload": { "autoload": {

View File

@@ -4,9 +4,11 @@ declare(strict_types=1);
namespace Potter\Document; namespace Potter\Document;
use \Potter\Nameable\NameableTrait;
use \Potter\Renderable\Renderable; use \Potter\Renderable\Renderable;
use \Potter\Template\Engine\Aware\TemplateEngineAwareTrait;
abstract class AbstractDocument extends Renderable implements DocumentInterface abstract class AbstractDocument extends Renderable implements DocumentInterface
{ {
use NameableTrait, TemplateEngineAwareTrait;
} }

View File

@@ -4,9 +4,11 @@ declare(strict_types=1);
namespace Potter\Document; namespace Potter\Document;
use \Potter\Nameable\NameableInterface;
use \Potter\Renderable\RenderableInterface; use \Potter\Renderable\RenderableInterface;
use \Potter\Template\Engine\Aware\TemplateEngineAwareInterface;
interface DocumentInterface extends RenderableInterface interface DocumentInterface extends NameableInterface, RenderableInterface, TemplateEngineAwareInterface
{ {
} }