Release of v4.0.1-beta5

Add option to use placeholders in Joomla Power namespaces.
This commit is contained in:
2024-07-19 12:35:10 +02:00
parent 6b5b42e2eb
commit a49ded4918
7 changed files with 22 additions and 19 deletions

View File

@ -345,7 +345,9 @@ final class JoomlaPower implements PowerInterface
*/
private function setNamespaceAndType(string $guid, array $namespace): void
{
$this->active[$guid]->namespace = $namespace['namespace'];
$this->active[$guid]->namespace = $this->placeholder->update_(
$namespace['namespace']
);
$this->active[$guid]->type = $namespace['type'] ?? 'class';
}