__callStatic()
detectBestAdapter()
getInstance()
isAnsicon()
isConsole()
isWindows()
overrideIsConsole()
$instance
$isConsole
An static, utility class for interacting with Console environment.
Declared abstract to prevent from instantiating.
__callStatic($funcName, $arguments) : mixed
mixeddetectBestAdapter() : string | null
stringnull
getInstance(null | string $forceAdapter, null | string $forceCharset) : \Zend\Console\Adapter\AdapterInterface
nullstringOptional adapter class name. Ccan be absolute namespace or class name relative to Zend\Console\Adapter. If not provided, a best matching adapter will be automatically selected.
nullstringoptional 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
boolisConsole() : bool
By default, returns value of PHP_SAPI global constant. If $isConsole is set, and a boolean value, that value will be returned.
boolisWindows() : bool
| see | \Zend\Console\http://stackoverflow.com/questions/738823/possible-values-for-php-os |
|---|
booloverrideIsConsole(null | bool $flag)
nullbool
$isConsole : bool
If set, and boolean, returns that value from isConsole().