Add tmp debugging.

This commit is contained in:
Llewellyn van der Merwe 2022-08-20 18:33:09 +02:00
parent a0fda76abd
commit e7500b76eb
Signed by: Llewellyn
GPG Key ID: A9201372263741E7
6 changed files with 20 additions and 13 deletions

View File

@ -144,7 +144,7 @@ TODO
+ *Version*: 3.1.5
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **311839**
+ *Line count*: **311846**
+ *Field count*: **2002**
+ *File count*: **2055**
+ *Folder count*: **351**

View File

@ -144,7 +144,7 @@ TODO
+ *Version*: 3.1.5
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
+ *Line count*: **311839**
+ *Line count*: **311846**
+ *Field count*: **2002**
+ *File count*: **2055**
+ *Folder count*: **351**

View File

@ -2394,7 +2394,7 @@ class Infusion extends Interpretation
// INSTALLCLASS
$this->fileContentDynamic[$module->key][$this->hhh
. 'INSTALLCLASS' . $this->hhh]
= (new InstallScript($module))->get();
= (new InstallScript($module, ['debug' => $this->debugLinenr]))->get();
}
// FIELDSET
if (isset($module->form_files)
@ -2456,7 +2456,7 @@ class Infusion extends Interpretation
// INSTALLCLASS
$this->fileContentDynamic[$plugin->key][$this->hhh
. 'INSTALLCLASS' . $this->hhh]
= (new InstallScript($plugin))->get();
= (new InstallScript($plugin, ['debug' => $this->debugLinenr]))->get();
}
// FIELDSET
if (isset($plugin->form_files)

File diff suppressed because one or more lines are too long

View File

@ -131,8 +131,14 @@ class InstallScript
* Constructor
* @since 3.1.5
*/
public function __construct(object $extension)
public function __construct(object $extension, ?array $config = null)
{
// check if we have the debug switch TODO - move to global registry - singleton
if (isset($config['debug']))
{
$this->debug = $config['debug'];
}
// loop over methods and types
foreach ($this->methods as $method)
{

View File

@ -19,6 +19,14 @@ namespace VDM\Joomla\Componentbuilder;
*/
trait Line
{
/**
* The debug switch
*
* @var bool
* @since 3.1.5
*/
protected bool $debug = false;
/**
* Set the line number in comments
*