Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/Illuminate/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@
*/
function action($name, $parameters = array(), $absolute = true)
{
$app = app();

return $app['url']->action($name, $parameters, $absolute);
return app('url')->action($name, $parameters, $absolute);
}

/**
* Get the root Facade application instance.
*
* @return Illuminate\Foundation\Application
* @param string $make
* @return mixed
*/
function app()
function app($make = null)
{
if ($make !== null)
{
return app()->make($make);
}

return Illuminate\Support\Facades\Facade::getFacadeApplication();
}

Expand All @@ -38,7 +42,7 @@ function app()
*/
function app_path()
{
return app()->make('path');
return app('path');
}

/**
Expand Down