forked from joomla/Component-Builder
Update on v4.0.0-alpha1 (changes towards the next release)
Here's an update on the current version, which includes changes towards the next release still in development.
This commit is contained in:
parent
c8540f2efc
commit
a7ade71c06
@ -148,7 +148,7 @@ TODO
|
||||
+ *Version*: 4.0.0-alpha1
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **725507**
|
||||
+ *Line count*: **725229**
|
||||
+ *Field count*: **2078**
|
||||
+ *File count*: **5115**
|
||||
+ *Folder count*: **518**
|
||||
|
@ -148,7 +148,7 @@ TODO
|
||||
+ *Version*: 4.0.0-alpha1
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **725507**
|
||||
+ *Line count*: **725229**
|
||||
+ *Field count*: **2078**
|
||||
+ *File count*: **5115**
|
||||
+ *Folder count*: **518**
|
||||
|
@ -125,6 +125,9 @@ final class InstallScript implements GetScriptInterface
|
||||
*/
|
||||
public function get(object $extension): string
|
||||
{
|
||||
// purge the object
|
||||
$this->rest();
|
||||
|
||||
// loop over methods and types
|
||||
foreach ($this->methods as $method)
|
||||
{
|
||||
@ -160,6 +163,24 @@ final class InstallScript implements GetScriptInterface
|
||||
return $this->build();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset all bucket at the start of each build
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function rest(): void
|
||||
{
|
||||
$this->construct = [];
|
||||
$this->install = [];
|
||||
$this->update = [];
|
||||
$this->uninstall = [];
|
||||
$this->preflightActive = false;
|
||||
$this->preflightBucket = ['install' => [], 'uninstall' => [], 'discover_install' => [], 'update' => []];
|
||||
$this->postflightActive = false;
|
||||
$this->postflightBucket = ['install' => [], 'uninstall' => [], 'discover_install' => [], 'update' => []];
|
||||
}
|
||||
|
||||
/**
|
||||
* build the install class
|
||||
*
|
||||
|
@ -125,6 +125,9 @@ final class InstallScript implements GetScriptInterface
|
||||
*/
|
||||
public function get(object $extension): string
|
||||
{
|
||||
// purge the object
|
||||
$this->rest();
|
||||
|
||||
// loop over methods and types
|
||||
foreach ($this->methods as $method)
|
||||
{
|
||||
@ -160,6 +163,24 @@ final class InstallScript implements GetScriptInterface
|
||||
return $this->build();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset all bucket at the start of each build
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function rest(): void
|
||||
{
|
||||
$this->construct = [];
|
||||
$this->install = [];
|
||||
$this->update = [];
|
||||
$this->uninstall = [];
|
||||
$this->preflightActive = false;
|
||||
$this->preflightBucket = ['install' => [], 'uninstall' => [], 'discover_install' => [], 'update' => []];
|
||||
$this->postflightActive = false;
|
||||
$this->postflightBucket = ['install' => [], 'uninstall' => [], 'discover_install' => [], 'update' => []];
|
||||
}
|
||||
|
||||
/**
|
||||
* build the install class
|
||||
*
|
||||
|
@ -125,6 +125,9 @@ final class InstallScript implements GetScriptInterface
|
||||
*/
|
||||
public function get(object $extension): string
|
||||
{
|
||||
// purge the object
|
||||
$this->rest();
|
||||
|
||||
// loop over methods and types
|
||||
foreach ($this->methods as $method)
|
||||
{
|
||||
@ -160,6 +163,24 @@ final class InstallScript implements GetScriptInterface
|
||||
return $this->build();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset all bucket at the start of each build
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function rest(): void
|
||||
{
|
||||
$this->construct = [];
|
||||
$this->install = [];
|
||||
$this->update = [];
|
||||
$this->uninstall = [];
|
||||
$this->preflightActive = false;
|
||||
$this->preflightBucket = ['install' => [], 'uninstall' => [], 'discover_install' => [], 'update' => []];
|
||||
$this->postflightActive = false;
|
||||
$this->postflightBucket = ['install' => [], 'uninstall' => [], 'discover_install' => [], 'update' => []];
|
||||
}
|
||||
|
||||
/**
|
||||
* build the install class
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user