Add tmp debugging.

This commit is contained in:
2022-08-20 18:33:09 +02:00
parent a0fda76abd
commit e7500b76eb
6 changed files with 20 additions and 13 deletions

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
*