|
| __construct () |
|
| getMatchingClassNames (string $interface, array $additional_ignore=[], string $matching_path=null) |
| The matcher finds the class names implementing the given interface, while ignoring paths in self::$ignore and and the additional patterns provided. More...
|
|
◆ __construct()
ILIAS\Setup\ImplementationOfInterfaceFinder::__construct |
( |
| ) |
|
Definition at line 37 of file ImplementationOfInterfaceFinder.php.
39 $this->root = substr(__FILE__, 0, strpos(__FILE__,
"/src"));
40 $this->classmap = include
"./libs/composer/vendor/composer/autoload_classmap.php";
◆ getAllClassNames()
ILIAS\Setup\ImplementationOfInterfaceFinder::getAllClassNames |
( |
array |
$additional_ignore, |
|
|
string |
$matching_path = null |
|
) |
| |
|
protected |
◆ getMatchingClassNames()
ILIAS\Setup\ImplementationOfInterfaceFinder::getMatchingClassNames |
( |
string |
$interface, |
|
|
array |
$additional_ignore = [] , |
|
|
string |
$matching_path = null |
|
) |
| |
The matcher finds the class names implementing the given interface, while ignoring paths in self::$ignore and and the additional patterns provided.
Patterns are regexps (without delimiters) to define complete paths on the filesystem to be ignored or selected.
- Parameters
-
| string[] | $additional_ignore |
string | $matching_path | |
Definition at line 53 of file ImplementationOfInterfaceFinder.php.
References Vendor\Package\$e, and ILIAS\Setup\ImplementationOfInterfaceFinder\getAllClassNames().
58 foreach ($this->
getAllClassNames($additional_ignore, $matching_path) as $class_name) {
60 $r = new \ReflectionClass($class_name);
61 if ($r->isInstantiable() && $r->implementsInterface($interface)) {
getAllClassNames(array $additional_ignore, string $matching_path=null)
◆ $classmap
ILIAS\Setup\ImplementationOfInterfaceFinder::$classmap = null |
|
protected |
◆ $ignore
ILIAS\Setup\ImplementationOfInterfaceFinder::$ignore |
|
protected |
◆ $root
ILIAS\Setup\ImplementationOfInterfaceFinder::$root |
|
protected |
The documentation for this class was generated from the following file: