From 9f68a69eba5e9e0f3710e8853ff8fff726947ba6 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 1 Jun 2015 12:19:17 +0200 Subject: Make the `praspel` function global. --- Praspel.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Praspel.php b/Praspel.php index 01493a2..1531aad 100644 --- a/Praspel.php +++ b/Praspel.php @@ -34,7 +34,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ -namespace Hoa\Praspel; +namespace Hoa\Praspel { use Hoa\Compiler; use Hoa\Core; @@ -133,6 +133,10 @@ class Praspel */ Core\Consistency::flexEntity('Hoa\Praspel\Praspel'); +} + +namespace { + /** * Alias of \Hoa\Praspel::interpret(). * @@ -142,6 +146,8 @@ Core\Consistency::flexEntity('Hoa\Praspel\Praspel'); if (!function_exists('praspel')) { function praspel($praspel) { - return Praspel::interpret($praspel); + return Hoa\Praspel::interpret($praspel); } } + +} -- cgit v1.1