Inspector
class Inspector (View source)
Class that extracts information from package controller.php files.
Properties
protected Filesystem | $fs | The Filesystem instance to be used for filesystem operations. |
|
private Parser[]|null | $parsers | The list of registered parsers. |
Methods
No description
Get the parsers list.
Extract the package details from the directory containing the package controller.php file.
Extract the package details reading its controller.php file.
Extract the package details analyzing the contents of its controller.php file.
Analyze the tokens to determine the analyzer to be used.
Details
__construct(Filesystem $fs, array $parsers)
No description
$this
addParser(Parser $parser)
Add a parser to the parsers list.
getParsers()
Get the parsers list.
\Concrete\Core\Package\Offline\Parser[]
PackageInfo
inspectPackageDirectory(string $directory)
Extract the package details from the directory containing the package controller.php file.
PackageInfo
inspectControllerFile(string $filename)
Extract the package details reading its controller.php file.
PackageInfo
inspectControllerContent(string|mixed $content)
Extract the package details analyzing the contents of its controller.php file.
protected Parser
determineParser(array $tokens)
Analyze the tokens to determine the analyzer to be used.