diff options
Diffstat (limited to 'src/Application.php')
-rw-r--r-- | src/Application.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Application.php b/src/Application.php new file mode 100644 index 00000000..674b3869 --- /dev/null +++ b/src/Application.php @@ -0,0 +1,25 @@ +<?php + +namespace Engelsystem; + +use Engelsystem\Container\Container; +use Psr\Container\ContainerInterface; + +class Application extends Container +{ + public function __construct() + { + $this->registerBaseBindings(); + } + + protected function registerBaseBindings() + { + self::setInstance($this); + Container::setInstance($this); + $this->instance('app', $this); + $this->instance('container', $this); + $this->instance(Container::class, $this); + $this->instance(Application::class, $this); + $this->instance(ContainerInterface::class, $this); + } +} |