Runner
class Runner implements ContainerAwareInterface (View source)
Traits
Constants
ROBOCLASS |
|
ROBOFILE |
|
Properties
protected InputInterface | $input | from InputAwareTrait | |
protected OutputInterface | $output | from OutputAwareTrait | |
protected | $io | from IO | |
protected | $obj | from IO | |
protected string | $roboClass | ||
protected string | $roboFile | ||
protected string | $dir | Working dir of Robo. |
|
protected string[] | $errorConditions | ||
protected string | $selfUpdateRepository | GitHub Repo for SelfUpdate. |
|
protected string | $configFilename | Filename to load configuration from (set to 'robo.yml' for RoboFiles). |
|
protected string | $envConfigPrefix | ||
protected null|ClassLoader | $classLoader | ||
protected string | $relativePluginNamespace |
Methods
Class Constructor
No description
No description
No description
Return an initialized application loaded with specified commands and configuration.
Get a list of locations where config files may be loaded
No description
No description
No description
No description
No description
No description
Process a shebang script, if one was used to launch this Runner.
Determine if the specified argument is a path to a shebang script.
Test to see if the provided line is a robo 'shebang' line.
Check for Robo-specific arguments such as --load-from, process them, and remove them from the array. We have to process --load-from before we set up Symfony Console.
No description
No description
This is just a proxy error handler that checks the current error_reporting level.
No description
No description
No description
No description
No description
No description
Details
$this
setInput(InputInterface $input)
No description
protected InputInterface
input()
No description
protected InputInterface
getInput()
deprecated
deprecated
Backwards compatibility.
$this
setOutput(OutputInterface $output)
No description
protected OutputInterface
output()
No description
protected OutputInterface
stderr()
No description
protected OutputInterface
getOutput()
deprecated
deprecated
Backwards compatibility
in
IO at line 24
currentState()
No description
__construct(null|string $roboClass = null, null|string $roboFile = null)
Class Constructor
in
IO at line 40
restore()
No description
protected
errorCondition(string $msg, string $errorType)
No description
protected bool
loadRoboFile(OutputInterface $output)
No description
int
execute(array $argv, null|string $appName = null, null|string $appVersion = null, null|OutputInterface $output = null)
No description
Application
getAppForTesting(string|null $appName = null, string|null $appVersion = null, string|array|null $commandFile = null, Config|null $config = null, ClassLoader|null $classLoader = null)
Return an initialized application loaded with specified commands and configuration.
This should ONLY be used for testing purposes. Works well in conjunction with Symfony's CommandTester.
protected string[]
getConfigFilePaths(string $userConfig)
Get a list of locations where config files may be loaded
int
run(null|array|InputInterface $input = null, null|OutputInterface $output = null, null|Application $app = null, array[] $commandFiles = [], null|ClassLoader $classLoader = null)
No description
protected null|string
getRoboFileCommands(OutputInterface $output)
No description
registerCommandClasses(Application $app, array $commandClasses)
No description
protected string[]
discoverCommandClasses(string $relativeNamespace)
No description
null|object
registerCommandClass(Application $app, string|BuilderAwareInterface|ContainerAwareInterface $commandClass)
No description
protected null|object
instantiateCommandClass(string|BuilderAwareInterface|ContainerAwareInterface $commandClass)
No description
installRoboHandlers()
No description
protected array
shebang(array $args)
Process a shebang script, if one was used to launch this Runner.
protected bool
isShebangFile(string $filepath)
Determine if the specified argument is a path to a shebang script.
If so, load it.
protected bool
isShebangLine(string $line)
Test to see if the provided line is a robo 'shebang' line.
protected array
processRoboOptions(array $argv)
Check for Robo-specific arguments such as --load-from, process them, and remove them from the array. We have to process --load-from before we set up Symfony Console.
protected bool|int
arraySearchBeginsWith(string $needle, string[] $haystack)
No description
shutdown()
No description
bool
handleError()
This is just a proxy error handler that checks the current error_reporting level.
In case error_reporting is disabled the error is marked as handled, otherwise the normal internal error handling resumes.
string
getSelfUpdateRepository()
No description
$this
setSelfUpdateRepository($selfUpdateRepository)
No description
$this
setConfigurationFilename(string $configFilename)
No description
$this
setEnvConfigPrefix(string $envConfigPrefix)
No description
$this
setClassLoader(ClassLoader $classLoader)
No description
$this
setRelativePluginNamespace(string $relativeNamespace)
No description