summaryrefslogtreecommitdiff
path: root/src/helpers.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-09-19 14:50:20 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-09-19 14:50:46 +0200
commit0ac981876432ff8f7f76ffee8c5102b633d760d4 (patch)
tree2d1bbfe85a74260ac937edd3da744ed84004256d /src/helpers.php
parent8c81adc8e83969e90b4c54daf4a396b1094134ff (diff)
Added Application
Diffstat (limited to 'src/helpers.php')
-rw-r--r--src/helpers.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers.php b/src/helpers.php
index 733b902d..b942068f 100644
--- a/src/helpers.php
+++ b/src/helpers.php
@@ -1,15 +1,15 @@
<?php
// Some useful functions
+use Engelsystem\Application;
use Engelsystem\Config\Config;
-use Engelsystem\Container\Container;
use Engelsystem\Http\Request;
use Engelsystem\Renderer\Renderer;
use Engelsystem\Routing\UrlGenerator;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
/**
- * Get the global container instance
+ * Get the global app instance
*
* @param string $id
* @return mixed
@@ -17,10 +17,10 @@ use Symfony\Component\HttpFoundation\Session\SessionInterface;
function app($id = null)
{
if (is_null($id)) {
- return Container::getInstance();
+ return Application::getInstance();
}
- return Container::getInstance()->get($id);
+ return Application::getInstance()->get($id);
}
/**