ProcessManager
class ProcessManager extends ProcessManager (View source)
The Drush ProcessManager adds a few Drush-specific service methods.
Properties
protected | $drupalFinder |
Methods
No description
No description
Run a Drush command on a site alias (or @self).
drushSiteProcess should be avoided in favor of the drush method above.
Determine the path to Drush to use
Return the relative path to 'vendor/bin/drush' from the Drupal root.
No description
Run a bash fragment locally.
Create a Process instance from a commandline string.
configureProcess sets up a process object so that it is ready to use.
Details
void
setDrupalFinder($drupalFinder)
No description
getDrupalFinder()
No description
ProcessBase
drush(SiteAliasInterface $siteAlias, string $command, array $args = [], array $options = [], array $options_double_dash = [])
Run a Drush command on a site alias (or @self).
ProcessBase
drushSiteProcess(SiteAliasInterface $siteAlias, array $args = [], array $options = [], array $options_double_dash = [])
internal | drushSiteProcess exists specifically for use by the RedispatchHook, which does not have specific knowledge about which argument is the command. |
drushSiteProcess should be avoided in favor of the drush method above.
drushScript(SiteAliasInterface $siteAlias)
Determine the path to Drush to use
protected
relativePathToVendorBinDrush()
Return the relative path to 'vendor/bin/drush' from the Drupal root.
ProcessBase
siteProcess(SiteAliasInterface $siteAlias, $args = [], $options = [], $optionsPassedAsArgs = [])
No description
ProcessBase
process(array $commandline, string|null $cwd = null, array|null $env = null, mixed|null $input = null, int|float|null $timeout = 60)
Run a bash fragment locally.
The timeout parameter on this method doesn't work. It exists for compatibility with parent. Call this method to get a Process and then call setters as needed.
ProcessBase
shell(string $command, string|null $cwd = null, array|null $env = null, mixed|null $input = null, int|float|null $timeout = 60)
Create a Process instance from a commandline string.
static protected ProcessBase
configureProcess(ProcessBase $process)
configureProcess sets up a process object so that it is ready to use.