Escape global namespaced get_app() calls

- Add deprecated status
This commit is contained in:
Hypolite Petovan 2018-12-27 19:22:35 -05:00
parent b8030313e5
commit 5e1ceb57de
52 changed files with 135 additions and 133 deletions

View file

@ -59,7 +59,7 @@ HELP;
throw new \RuntimeException('DocBlox isn\'t available.');
}
$dir = get_app()->getBasePath();
$dir = \get_app()->getBasePath();
//stack for dirs to search
$dirstack = [];

View file

@ -39,7 +39,7 @@ HELP;
protected function doExecute()
{
$a = get_app();
$a = \get_app();
if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__);

View file

@ -47,7 +47,7 @@ HELP;
protected function doExecute()
{
$a = get_app();
$a = \get_app();
if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__);

View file

@ -40,7 +40,7 @@ HELP;
protected function doExecute()
{
$a = get_app();
$a = \get_app();
if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__);

View file

@ -51,7 +51,7 @@ HELP;
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
$a = get_app();
$a = \get_app();
$phpfile = realpath($this->getArgument(0));

View file

@ -47,7 +47,7 @@ HELP;
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
$a = get_app();
$a = \get_app();
$pofile = realpath($this->getArgument(0));

View file

@ -41,7 +41,7 @@ HELP;
throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
}
$a = get_app();
$a = \get_app();
$php_path = $a->getConfigValue('config', 'php_path', 'php');