Update Cli setup
This commit is contained in:
parent
7d8a207eee
commit
85583503f6
5 changed files with 144 additions and 12 deletions
|
@ -13,15 +13,16 @@ if(!function_exists('app'))
|
|||
{
|
||||
/**
|
||||
* @param null $abstract
|
||||
* @param array $arguments
|
||||
* @return \Runtime\Factory\BootstrapFactory|Container
|
||||
*/
|
||||
function app($abstract = null)
|
||||
function app($abstract = null, $arguments = [])
|
||||
{
|
||||
if (is_null($abstract)) {
|
||||
return Bootstrap::getInstance();
|
||||
}
|
||||
|
||||
return Bootstrap::getInstance()->make($abstract);
|
||||
return Bootstrap::getInstance()->make($abstract, $arguments);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue