Use Request helper to determine whether we're in CLI mode.

This commit is contained in:
Franz Liedke
2012-09-17 18:42:25 +03:00
parent d051994e2c
commit b1e4cf9d29

View File

@@ -213,7 +213,7 @@ if (isset($environment))
| |
*/ */
if (defined('STDIN')) if (Request::cli())
{ {
$console = CLI\Command::options($_SERVER['argv']); $console = CLI\Command::options($_SERVER['argv']);