Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e8457567a | ||
|
|
8e62519dfd |
@@ -10,12 +10,12 @@ Stable version
|
|||||||
composer require rmphp/content
|
composer require rmphp/content
|
||||||
```
|
```
|
||||||
```bash
|
```bash
|
||||||
composer require rmphp/content:"^3.0"
|
composer require rmphp/content:"^4.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Dev version contains the latest changes
|
Dev version contains the latest changes
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
composer require rmphp/content:"3.x-dev"
|
composer require rmphp/content:"4.x-dev"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -9,12 +9,12 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"rmphp/foundation": "^2.0"
|
"rmphp/foundation": "^3.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Rmphp\\Content\\": "src/"
|
"Rmphp\\Content\\": "src/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ namespace Rmphp\Content;
|
|||||||
use Rmphp\Foundation\Exceptions\AppError;
|
use Rmphp\Foundation\Exceptions\AppError;
|
||||||
use Rmphp\Foundation\TemplateInterface;
|
use Rmphp\Foundation\TemplateInterface;
|
||||||
|
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class Content implements TemplateInterface {
|
class Content implements TemplateInterface {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -134,4 +135,4 @@ class Content implements TemplateInterface {
|
|||||||
ob_start(); include ContentData::$template; $out = ob_get_contents(); ob_end_clean();
|
ob_start(); include ContentData::$template; $out = ob_get_contents(); ob_end_clean();
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user