Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74a8b51047 | ||
|
|
1e8457567a |
@@ -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,7 +9,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"rmphp/foundation": "^2.0"
|
"rmphp/foundation": "^3.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
|||||||
@@ -73,6 +73,15 @@ class Content implements TemplateInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $data
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function addData(array $data = []) : void {
|
||||||
|
foreach ($data as $dataKey => $dataVal){
|
||||||
|
$this->{$dataKey} = $dataVal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
@@ -111,6 +120,8 @@ class Content implements TemplateInterface {
|
|||||||
$this->addSubtemplate($point, $subtemplate, $resource);
|
$this->addSubtemplate($point, $subtemplate, $resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user