Skip to content

Commit

Permalink
Undocument function that must be moved
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed Jan 21, 2015
1 parent d404758 commit 9705837
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,6 @@ function engine(array $options = [])
}
}

if (! function_exists('Foil\template')) {
/**
*
* @param string $path
* @param string|void $class
* @return \Foil\Template\Template
*/
function template($path, $class = null)
{
return foil('template.factory')->factory($path, $class);
}
}

if (! function_exists('Foil\render_template')) {
/**
* Render a template using a full template file path and some data.
Expand Down Expand Up @@ -303,3 +290,17 @@ function arraize($data = [], $escape = false, array $trasformers = [], $tostring
return (new Arraize())->run($data, $escape, $trasformers, $tostring);
}
}

if (! function_exists('Foil\template')) {
function template($path, $class = null)
{
return foil('template.factory')->factory($path, $class);
}
}

if (! function_exists('Foil\command')) {
function command()
{
return foil('command');
}
}

0 comments on commit 9705837

Please sign in to comment.