SiteInstallCommand
final class SiteInstallCommand extends Command (View source)
Traits
A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.
Constants
NAME |
|
Properties
protected | $uri | from ExecTrait |
Methods
Instantiates a new instance of the implementing class using autowiring.
Starts a background browser/tab for the current site or a specified URL.
No description
No description
No description
No description
No description
No description
Determine if the passed parameter is a recipe directory, or a profile name.
Determine whether the provided profile name meets naming conventions.
Validates a user provided recipe.
No description
No description
Fake the necessary HTTP headers that the Drupal installer still needs:
No description
Determine an appropriate site subdir name to use for the provided uri.
Details
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
bool
startBrowser(string|null $uri = null, int $sleep = 0, int|null $port = null, string|bool $browser = false)
Starts a background browser/tab for the current site or a specified URL.
Uses a non-blocking Process call, so Drush execution will continue.
static bool
programExists($program)
No description
static string
getEditor(string|null $editor = null)
No description
__construct(BootstrapManager $bootstrapManager, SiteAliasManagerInterface $siteAliasManager, ClassLoader $autoloader, DrushConfig $drushConfig, LoggerInterface $logger)
No description
protected void
configure()
No description
int
execute(InputInterface $input, OutputInterface $output)
No description
protected void
validate(InputInterface $input, DrushStyle $io)
No description
protected void
pre(InputInterface $input, DrushStyle $io)
No description
protected void
doExecute(InputInterface $input, OutputInterface $output, DrushStyle $io)
No description
protected array
determineRecipeOrProfile($recipeOrProfile, $options)
Determine if the passed parameter is a recipe directory, or a profile name.
protected
isValidProfileName(string $profile)
Determine whether the provided profile name meets naming conventions.
We do not check for reserved names; if a profile name might be valid, we will pass it through to Drupal and let the system tell us if it is not allowed.
protected bool
validateRecipe(string $recipe)
Validates a user provided recipe.
protected string|bool
determineProfile($profile, $options)
No description
void
taskCallback($install_state)
No description
protected void
serverGlobals($drupal_base_url)
Fake the necessary HTTP headers that the Drupal installer still needs:
protected array
getLoginLinks(UserInterface $account)
No description
protected
getSitesSubdirFromUri($root, $uri)
Determine an appropriate site subdir name to use for the provided uri.