You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
609 B
PHP
26 lines
609 B
PHP
<?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);
|
|
}
|
|
}
|