Свойство | Тип | Описание | |
---|---|---|---|
$container | The component container | ||
$paths | array | The list of paths where platform class files will be looked for |
Метод | Описание | |
---|---|---|
__construct ( |
Public constructor. | |
getExt ( string $file ) : string | Gets the extension of a file name | |
stripExt ( string $file ) : string | Strips the last extension off of a file name |
Метод | Описание | |
---|---|---|
getFiles ( string $path, array $ignoreFolders = [], array $ignoreFiles = [] ) : array | This method will crawl a starting directory and get all the valid files that will be analyzed by getInstance. | |
scanDirectory ( string $path, array $ignoreFolders = [], array $ignoreFiles = [] ) : array | Recursive function that will scan every directory unless it's in the ignore list. Files that aren't in the ignore list are returned. |
public __construct ( |
||
$c | The component container |
protected static getFiles ( string $path, array $ignoreFolders = [], array $ignoreFiles = [] ) : array | ||
$path | string | Folder where we should start looking |
$ignoreFolders | array | Folder ignore list |
$ignoreFiles | array | File ignore list |
Результат | array | Associative array, where the `fullpath` key contains the path to the file, and the `classname` key contains the name of the class |
protected static array $paths | ||
Результат | array |