aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-10-31 19:03:05 +0100
committerWilly Micieli <micieli@laposte.net>2019-10-31 19:03:05 +0100
commit1dc65c2bafd1af724daa56762fc2008f9cccc524 (patch)
tree18219f69b0a14993fa87f9d2a5aef2214c4bb61e
parenta2af2f94899d48058239b99e61f2fa622d2b9f98 (diff)
downloadimperium-1dc65c2bafd1af724daa56762fc2008f9cccc524.zip
imperium-1dc65c2bafd1af724daa56762fc2008f9cccc524.tar.gz
add missing views url helper
-rw-r--r--helpers/web.php2
-rw-r--r--imperium/View/View.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/helpers/web.php b/helpers/web.php
index 6ce099a..f7b4c3d 100644
--- a/helpers/web.php
+++ b/helpers/web.php
@@ -12,7 +12,7 @@ use Imperium\Model\Web;
use Sinergi\BrowserDetector\Os;
use Imperium\Collection\Collect;
use Symfony\Component\Console\Output\OutputInterface;
-
+
if (!function_exists('collect'))
{
/**
diff --git a/imperium/View/View.php b/imperium/View/View.php
index 8aef1d9..65f47c2 100644
--- a/imperium/View/View.php
+++ b/imperium/View/View.php
@@ -185,6 +185,10 @@
{
return config('twig', 'development') === true;
+ }, [ 'is_safe' => [ 'html' ] ]),new TwigFunction('url', function(...$args)
+ {
+
+ return url($args);
}, [ 'is_safe' => [ 'html' ] ]));
foreach($functions->all() as $function)