From a49ded4918a25dcd3dddf2db88cf730c0f95d68f Mon Sep 17 00:00:00 2001 From: aB0t Date: Fri, 19 Jul 2024 12:35:10 +0200 Subject: [PATCH] Release of v4.0.1-beta5 Add option to use placeholders in Joomla Power namespaces. --- CHANGELOG.md | 7 ++++--- ComponentbuilderInstallerScript.php | 2 +- README.md | 8 ++++---- admin/README.txt | 8 ++++---- componentbuilder.xml | 6 +++--- componentbuilder_update_server.xml | 6 +++--- .../src/Componentbuilder/Compiler/JoomlaPower.php | 4 +++- 7 files changed, 22 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4965f3df9..4d30384b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -# v4.0.1-beta4 +# v4.0.1-beta5 -- Fix app instances (mismatch) in the install script and schema class when installing from CLI +- Add option to use placeholders in Joomla Power namespaces. # v4.0.1-beta @@ -9,7 +9,8 @@ - Fix the metadata, metadesc, metakey database issue - Fix function mismatch call in the compiler power class. - Fix init feature to only add missing powers -- Fix controller postSaveHook function, for correct model class in Joomla 4 and 5 +- Fix controller postSaveHook function, for correct model class in Joomla 4 and 5 +- Fix app instances (mismatch) in the install script and schema class when installing from CLI # v4.0.1-alpha diff --git a/ComponentbuilderInstallerScript.php b/ComponentbuilderInstallerScript.php index 7cdbb2554..cd0d6d70a 100644 --- a/ComponentbuilderInstallerScript.php +++ b/ComponentbuilderInstallerScript.php @@ -3267,7 +3267,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface echo '
-

Upgrade to Version 4.0.1-beta4 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 4.0.1-beta5 Was Successful! Let us know if anything is not working as expected.

'; // Add/Update component in the action logs extensions table. $this->setActionLogsExtensions(); diff --git a/README.md b/README.md index c5422ab8c..094e4f2e0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.1-beta4) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.1-beta5) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -144,11 +144,11 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 18th July, 2024 -+ *Version*: 4.0.1-beta4 ++ *Last Build*: 19th July, 2024 ++ *Version*: 4.0.1-beta5 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **780743** ++ *Line count*: **780750** + *Field count*: **2104** + *File count*: **5464** + *Folder count*: **540** diff --git a/admin/README.txt b/admin/README.txt index c5422ab8c..094e4f2e0 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.1-beta4) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.1-beta5) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -144,11 +144,11 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io) + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 18th July, 2024 -+ *Version*: 4.0.1-beta4 ++ *Last Build*: 19th July, 2024 ++ *Version*: 4.0.1-beta5 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **780743** ++ *Line count*: **780750** + *Field count*: **2104** + *File count*: **5464** + *Folder count*: **540** diff --git a/componentbuilder.xml b/componentbuilder.xml index d511a1043..2ebc58f8c 100644 --- a/componentbuilder.xml +++ b/componentbuilder.xml @@ -1,15 +1,15 @@ COM_COMPONENTBUILDER - 18th July, 2024 + 19th July, 2024 Llewellyn van der Merwe joomla@vdm.io https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 4.0.1-beta4 + 4.0.1-beta5 Component Builder (v.4.0.1-beta4) +

Component Builder (v.4.0.1-beta5)

The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. diff --git a/componentbuilder_update_server.xml b/componentbuilder_update_server.xml index 7ed5d06a6..85621f18a 100644 --- a/componentbuilder_update_server.xml +++ b/componentbuilder_update_server.xml @@ -62,7 +62,7 @@ 4.0.1-beta https://dev.vdm.io - https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.1-beta3.zip + https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.1-beta5.zip beta @@ -77,10 +77,10 @@ pkg_component_builder package site - 4.0.1-beta4 + 4.0.1-beta5 https://dev.vdm.io - https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.1-beta4.zip + https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.1-beta5.zip beta diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaPower.php b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaPower.php index 1bbbb20e5..d85e672be 100644 --- a/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaPower.php +++ b/libraries/vendor_jcb/VDM.Joomla/src/Componentbuilder/Compiler/JoomlaPower.php @@ -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'; }