Use Nameable
This commit is contained in:
@@ -4,7 +4,8 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^8.4",
|
"php": "^8.4",
|
||||||
"potter/renderable": "dev-main",
|
"potter/renderable": "dev-main",
|
||||||
"potter/template": "dev-main"
|
"potter/template": "dev-main",
|
||||||
|
"potter/nameable": "dev-main"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|||||||
@@ -4,10 +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;
|
use \Potter\Template\Engine\Aware\TemplateEngineAwareTrait;
|
||||||
|
|
||||||
abstract class AbstractDocument extends Renderable implements DocumentInterface
|
abstract class AbstractDocument extends Renderable implements DocumentInterface
|
||||||
{
|
{
|
||||||
use TemplateEngineAwareTrait;
|
use NameableTrait, TemplateEngineAwareTrait;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +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;
|
use \Potter\Template\Engine\Aware\TemplateEngineAwareInterface;
|
||||||
|
|
||||||
interface DocumentInterface extends RenderableInterface, TemplateEngineAwareInterface
|
interface DocumentInterface extends NameableInterface, RenderableInterface, TemplateEngineAwareInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user