PreflightSiteLocator
class PreflightSiteLocator (View source)
Properties
protected SiteAliasManager | $siteAliasManager |
Methods
No description
During bootstrap, finds the currently selected site from the parameters provided on the commandline.
Either look up the specified alias name / site spec, or, if those are invalid, then generate one from the provided root and URI.
Generate @self from the provided root and URI.
Details
__construct(SiteAliasManager $siteAliasManager)
No description
SiteAlias|false
findSite(PreflightArgs $preflightArgs, Environment $environment, string $root)
During bootstrap, finds the currently selected site from the parameters provided on the commandline.
If 'false' is returned, that indicates that there was an alias name provided on the commandline that is either missing or invalid.
protected SiteAlias|false
determineSelf(PreflightArgs $preflightArgs, Environment $environment, $root)
Either look up the specified alias name / site spec, or, if those are invalid, then generate one from the provided root and URI.
protected SiteAlias
buildSelf(PreflightArgs $preflightArgs, string|null $root)
Generate @self from the provided root and URI.