BumbleDocGen / Technical description of the project / Parser / Source locators / AsyncSourceLocator
AsyncSourceLocator class:
namespace BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator;
final class AsyncSourceLocator implements \BumbleDocGen\Core\Parser\SourceLocator\SourceLocatorInterface, \BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\CustomSourceLocatorInterface
Lazy loading classes. Cannot be used for initial parsing of files, only for getting specific documents
- # __construct | source code
public function __construct(\BumbleDocGen\Core\Cache\LocalCache\LocalObjectCache $localObjectCache, array $psr4FileMap, array $classMap);
Parameters:
Name | Type | Description |
---|---|---|
$localObjectCache | \BumbleDocGen\Core\Cache\LocalCache\LocalObjectCache | - |
$psr4FileMap | array | - |
$classMap | array | - |
- # getFinder | source code
public function getFinder(): \Symfony\Component\Finder\Finder|null;
Parameters: not specified
Return value: \Symfony\Component\Finder\Finder | null
- # getSourceLocator | source code
public function getSourceLocator(\Roave\BetterReflection\SourceLocator\Ast\Locator $astLocator): \Roave\BetterReflection\SourceLocator\Type\SourceLocator;
Parameters:
Name | Type | Description |
---|---|---|
$astLocator | \Roave\BetterReflection\SourceLocator\Ast\Locator | - |
Return value: \Roave\BetterReflection\SourceLocator\Type\SourceLocator