From 1e24045e0df7375950f22cdae8bb1e55b473b1cf Mon Sep 17 00:00:00 2001 From: aB0t Date: Thu, 18 Jul 2024 20:48:12 +0200 Subject: [PATCH] Release of v4.0.1-beta4 Fix app instances (mismatch) in the install script and schema class when installing from CLI. --- CHANGELOG.md | 9 +++++---- ComponentbuilderInstallerScript.php | 4 +--- README.md | 6 +++--- admin/README.txt | 6 +++--- admin/compiler/joomla_4/INSTALLER_SCRIPT.php | 2 -- componentbuilder.xml | 4 ++-- componentbuilder_update_server.xml | 4 ++-- .../VDM.Joomla/src/Abstraction/SchemaChecker.php | 14 ++++++-------- 8 files changed, 22 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6132a4667..4965f3df9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,15 @@ -# v4.0.1-beta3 +# v4.0.1-beta4 -- Fix init feature to only add missing powers -- 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-beta - Fix subform set methods - Improved the Joomla Power Push path - Fix the metadata, metadesc, metakey database issue -- Fix function mismatch call in the compiler power class. +- 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 # v4.0.1-alpha diff --git a/ComponentbuilderInstallerScript.php b/ComponentbuilderInstallerScript.php index 0e8b95419..7cdbb2554 100644 --- a/ComponentbuilderInstallerScript.php +++ b/ComponentbuilderInstallerScript.php @@ -14,7 +14,6 @@ use Joomla\CMS\Language\Text; use Joomla\CMS\Filesystem\File; use Joomla\CMS\Installer\InstallerAdapter; use Joomla\CMS\Installer\InstallerScriptInterface; -use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Log\Log; use Joomla\CMS\Version; use Joomla\CMS\HTML\HTMLHelper as Html; @@ -35,7 +34,6 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface /** * The CMS Application. * - * @var CMSApplication * @since 4.4.2 */ protected $app; @@ -3269,7 +3267,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface echo '
-

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

'; +

Upgrade to Version 4.0.1-beta4 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 a2855a0c4..c5422ab8c 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-beta3) 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-beta4) 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) @@ -145,10 +145,10 @@ TODO + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 + *Last Build*: 18th July, 2024 -+ *Version*: 4.0.1-beta3 ++ *Version*: 4.0.1-beta4 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **780749** ++ *Line count*: **780743** + *Field count*: **2104** + *File count*: **5464** + *Folder count*: **540** diff --git a/admin/README.txt b/admin/README.txt index a2855a0c4..c5422ab8c 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-beta3) 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-beta4) 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) @@ -145,10 +145,10 @@ TODO + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 + *Last Build*: 18th July, 2024 -+ *Version*: 4.0.1-beta3 ++ *Version*: 4.0.1-beta4 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **780749** ++ *Line count*: **780743** + *Field count*: **2104** + *File count*: **5464** + *Folder count*: **540** diff --git a/admin/compiler/joomla_4/INSTALLER_SCRIPT.php b/admin/compiler/joomla_4/INSTALLER_SCRIPT.php index 93e5034c2..f57ad2cd1 100644 --- a/admin/compiler/joomla_4/INSTALLER_SCRIPT.php +++ b/admin/compiler/joomla_4/INSTALLER_SCRIPT.php @@ -19,7 +19,6 @@ use Joomla\CMS\Language\Text; use Joomla\CMS\Filesystem\File; use Joomla\CMS\Installer\InstallerAdapter; use Joomla\CMS\Installer\InstallerScriptInterface; -use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Log\Log; use Joomla\CMS\Version; use Joomla\CMS\HTML\HTMLHelper as Html; @@ -39,7 +38,6 @@ class Com_###Component###InstallerScript implements InstallerScriptInterface /** * The CMS Application. * - * @var CMSApplication * @since 4.4.2 */ protected $app; diff --git a/componentbuilder.xml b/componentbuilder.xml index 365c79c26..d511a1043 100644 --- a/componentbuilder.xml +++ b/componentbuilder.xml @@ -7,9 +7,9 @@ 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-beta3 + 4.0.1-beta4 Component Builder (v.4.0.1-beta3) +

Component Builder (v.4.0.1-beta4)

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 2322a5efe..7ed5d06a6 100644 --- a/componentbuilder_update_server.xml +++ b/componentbuilder_update_server.xml @@ -77,10 +77,10 @@ pkg_component_builder package site - 4.0.1-beta3 + 4.0.1-beta4 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-beta4.zip beta diff --git a/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/SchemaChecker.php b/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/SchemaChecker.php index 231122cec..aad47d7d2 100644 --- a/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/SchemaChecker.php +++ b/libraries/vendor_jcb/VDM.Joomla/src/Abstraction/SchemaChecker.php @@ -12,8 +12,7 @@ namespace VDM\Joomla\Abstraction; -use Joomla\CMS\Factory; -use Joomla\CMS\Application\CMSApplication; +use Joomla\CMS\Factory; use VDM\Joomla\Interfaces\SchemaInterface as Schema; use VDM\Joomla\Interfaces\Tableinterface as Table; use VDM\Joomla\Utilities\ClassHelper; @@ -46,22 +45,21 @@ abstract class SchemaChecker implements SchemaCheckerInterface /** * Application object. * - * @var CMSApplication * @since 3.2.2 **/ - protected CMSApplication $app; + protected $app; /** * Constructor. * - * @param Schema|null $schema The Schema Class. - * @param Table|null $table The Table Class. - * @param CMSApplication|null $app The app object. + * @param Schema|null $schema The Schema Class. + * @param Table|null $table The Table Class. + * @param $app The app object. * * @throws \Exception * @since 3.2.2 */ - public function __construct(?Schema $schema = null, ?Table $table = null, ?CMSApplication $app = null) + public function __construct(?Schema $schema = null, ?Table $table = null, $app = null) { $this->schema = $schema; $this->table = $table;