aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-06-01 12:19:17 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-06-01 12:19:17 +0200
commit9f68a69eba5e9e0f3710e8853ff8fff726947ba6 (patch)
tree0f5e275d839471dbf2adfa1ad69bd8121cc945f6
parentb858f9f304eb59304e64d328f6d15bf4f41cb298 (diff)
downloadPraspel-9f68a69eba5e9e0f3710e8853ff8fff726947ba6.zip
Praspel-9f68a69eba5e9e0f3710e8853ff8fff726947ba6.tar.gz
Praspel-9f68a69eba5e9e0f3710e8853ff8fff726947ba6.tar.bz2
Make the `praspel` function global.
-rw-r--r--Praspel.php10
1 files 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);
}
}
+
+}