SqlSyncCommand
final class SqlSyncCommand extends Command (View source)
Traits
A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.
Constants
NAME |
|
Methods
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
from
AutowireTrait
__construct(SiteAliasManagerInterface $siteAliasManager, LoggerInterface $logger, ProcessManager $processManager, DrushConfig $drushConfig)
No description
void
configure()
No description
int
execute(InputInterface $input, OutputInterface $output)
No description
void
validateSync(InputInterface $input, OutputInterface $output, DrushStyle $io)
No description
string
string
string
void
import($global_options, $target_dump_path, $targetRecord)
Import file into target.
Details
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
__construct(SiteAliasManagerInterface $siteAliasManager, LoggerInterface $logger, ProcessManager $processManager, DrushConfig $drushConfig)
No description
protected void
configure()
No description
protected int
execute(InputInterface $input, OutputInterface $output)
No description
void
validateSync(InputInterface $input, OutputInterface $output, DrushStyle $io)
No description
string
databaseName(SiteAlias $record)
No description
string
dump(array $options, array $global_options, SiteAlias $sourceRecord)
Perform sql-dump on source unless told otherwise. Returns the path to the dump file.
string
rsync(array $options, SiteAlias $sourceRecord, SiteAlias $targetRecord, $source_dump_path)
No description
void
import($global_options, $target_dump_path, $targetRecord)
Import file into target.