Update view factory. Add resource helper
This commit is contained in:
parent
94ea72f26a
commit
246bbed148
4 changed files with 72 additions and 11 deletions
|
@ -7,12 +7,12 @@ if(!function_exists('app'))
|
|||
{
|
||||
/**
|
||||
* @param null $abstract
|
||||
* @return mixed|Container
|
||||
* @return \Runtime\Factory\BootstrapFactory|Container
|
||||
*/
|
||||
function app($abstract = null)
|
||||
{
|
||||
if (is_null($abstract)) {
|
||||
Bootstrap::getInstance();
|
||||
return Bootstrap::getInstance();
|
||||
}
|
||||
|
||||
return Bootstrap::getInstance()->make($abstract);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue