PMCORE-4013 Wizard trigger: is using a old library thirdparty/wizard please research to use a new or Reflection

This commit is contained in:
Roly Gutierrez
2022-11-17 15:34:12 -04:00
parent 8640a0b209
commit 903a707561
11 changed files with 683 additions and 563 deletions

View File

@@ -1,4 +1,6 @@
<?php
use ProcessMaker\PHPReflectionClass\ClassStructure;
use ProcessMaker\Plugins\PluginRegistry;
class TriggerLibrary
@@ -105,14 +107,13 @@ class TriggerLibrary
* getMethodsFromLibraryFile
*
* @param string $file
* @return object(PHPClass) $parsedLibrary
* @return ClassStructure $parsedLibrary
*/
public function getMethodsFromLibraryFile($file)
{
// parse class comments from file
$parsedLibrary = new PHPClass();
$parsedLibrary = new ClassStructure();
$success = $parsedLibrary->parseFromFile($file);
return $parsedLibrary;
}