2017-09-19 14:50:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Engelsystem;
|
|
|
|
|
|
|
|
use Engelsystem\Container\Container;
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
|
|
|
|
class Application extends Container
|
|
|
|
{
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
$this->registerBaseBindings();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function registerBaseBindings()
|
|
|
|
{
|
2017-09-21 18:37:37 +02:00
|
|
|
static::setInstance($this);
|
2017-09-19 14:50:20 +02:00
|
|
|
Container::setInstance($this);
|
|
|
|
$this->instance('app', $this);
|
|
|
|
$this->instance('container', $this);
|
|
|
|
$this->instance(Container::class, $this);
|
|
|
|
$this->instance(Application::class, $this);
|
2017-09-21 18:37:37 +02:00
|
|
|
$this->bind(ContainerInterface::class, Application::class);
|
2017-09-19 14:50:20 +02:00
|
|
|
}
|
|
|
|
}
|