Skip to content

Commit

Permalink
Changed Laravel\ namespace prefix in some classes calls in helpers to
Browse files Browse the repository at this point in the history
global, to allow aliases to work, and allow class extending.
  • Loading branch information
jan-j committed Apr 5, 2013
1 parent 4ecbef6 commit 3cd624e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions laravel/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function head($array)
*/
function url($url = '', $https = null)
{
return Laravel\URL::to($url, $https);
return URL::to($url, $https);
}

/**
Expand All @@ -340,7 +340,7 @@ function url($url = '', $https = null)
*/
function asset($url, $https = null)
{
return Laravel\URL::to_asset($url, $https);
return URL::to_asset($url, $https);
}

/**
Expand All @@ -360,7 +360,7 @@ function asset($url, $https = null)
*/
function action($action, $parameters = array())
{
return Laravel\URL::to_action($action, $parameters);
return URL::to_action($action, $parameters);
}

/**
Expand All @@ -380,7 +380,7 @@ function action($action, $parameters = array())
*/
function route($name, $parameters = array())
{
return Laravel\URL::to_route($name, $parameters);
return URL::to_route($name, $parameters);
}

/**
Expand Down Expand Up @@ -523,7 +523,7 @@ function view($view, $data = array())
{
if (is_null($view)) return '';

return Laravel\View::make($view, $data);
return View::make($view, $data);
}

/**
Expand All @@ -537,7 +537,7 @@ function render($view, $data = array())
{
if (is_null($view)) return '';

return Laravel\View::make($view, $data)->render();
return View::make($view, $data)->render();
}

/**
Expand All @@ -551,7 +551,7 @@ function render($view, $data = array())
*/
function render_each($partial, array $data, $iterator, $empty = 'raw|')
{
return Laravel\View::render_each($partial, $data, $iterator, $empty);
return View::render_each($partial, $data, $iterator, $empty);
}

/**
Expand All @@ -562,7 +562,7 @@ function render_each($partial, array $data, $iterator, $empty = 'raw|')
*/
function yield($section)
{
return Laravel\Section::yield($section);
return Section::yield($section);
}

/**
Expand All @@ -574,7 +574,7 @@ function yield($section)
*/
function get_cli_option($option, $default = null)
{
foreach (Laravel\Request::foundation()->server->get('argv') as $argument)
foreach (Request::foundation()->server->get('argv') as $argument)
{
if (starts_with($argument, "--{$option}="))
{
Expand Down

0 comments on commit 3cd624e

Please sign in to comment.