final class DrupalDirectoryCommand extends Command (View source)

Traits

A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.

Constants

NAME

Properties

protected BackendPathEvaluator $pathEvaluator

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

__construct(SiteAliasManagerInterface $siteAliasManager)

No description

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

getPath($target = 'root', $local_only = false)

Given a target (e.g.

Details

static create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

__construct(SiteAliasManagerInterface $siteAliasManager)

No description

Parameters

SiteAliasManagerInterface $siteAliasManager

protected void configure()

No description

Return Value

void

int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

protected getPath($target = 'root', $local_only = false)

Given a target (e.g.

@site:%modules), return the evaluated directory path.

Parameters

$target

The target to evaluate. Can be @site or /path or @site:path or @site:%pathalias, etc. (just like rsync parameters)

$local_only

When true, fail if the site alias is remote.