Add tmp debugging.
This commit is contained in:
parent
a0fda76abd
commit
e7500b76eb
@ -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**
|
||||
|
@ -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**
|
||||
|
@ -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
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user