Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.21 KB

sourceLocator.md

File metadata and controls

33 lines (21 loc) · 2.21 KB

BumbleDocGen / Technical description of the project / Parser / Source locators


Source locators

Source locators are needed so that the parser knows which files to parse, or to get data on a specific file after the primary parsing procedure

Source locators are set in the configuration:

 source_locators:
   - class: \BumbleDocGen\Core\Parser\SourceLocator\RecursiveDirectoriesSourceLocator
     arguments:
       directories:
         - "%project_root%/src"
         - "%project_root%/selfdoc"

You can create your own source locators or use any existing ones. All source locators must implement the SourceLocatorInterface interface.

Built-in source locators

Common source locators:

PHP source locators:

  • AsyncSourceLocator - Lazy loading classes. Cannot be used for initial parsing of files, only for getting specific documents


Last page committer: fshcherbanich <[email protected]>
Last modified date: Sat Oct 28 11:03:31 2023 +0300
Page content update date: Mon Nov 06 2023
Made with Bumble Documentation Generator