Update Cli setup

This commit is contained in:
Maarten 2019-12-24 01:54:04 +01:00
parent 7d8a207eee
commit 85583503f6
5 changed files with 144 additions and 12 deletions

View file

@ -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);
}
}