__callStatic()
detectBestAdapter()
getInstance()
isAnsicon()
isConsole()
isWindows()
overrideIsConsole()
resetInstance()
$instance
$isConsole
A static, utility class for interacting with Console environment.
Declared abstract to prevent from instantiating.
__callStatic($funcName, $arguments) : mixed
mixed
detectBestAdapter() : string | null
string
null
getInstance(null | string $forceAdapter, null | string $forceCharset) : \Zend\Console\Adapter\AdapterInterface
nullstring
Optional adapter class name. Can be absolute namespace or class name relative to Zend\Console\Adapter. If not provided, a best matching adapter will be automatically selected.
nullstring
optional charset name can be absolute namespace or class name relative to Zend\Console\Charset. If not provided, charset will be detected automatically.
\Zend\Console\Exception\InvalidArgumentException |
|
---|---|
\Zend\Console\Exception\RuntimeException |
isAnsicon() : bool
bool
isConsole() : bool
By default, returns value of PHP_SAPI global constant. If $isConsole is set, and a boolean value, that value will be returned.
bool
isWindows() : bool
see | \Zend\Console\http://stackoverflow.com/questions/738823/possible-values-for-php-os |
---|
bool
overrideIsConsole(null | bool $flag)
nullbool
resetInstance()
$isConsole : bool
If set, and boolean, returns that value from isConsole().