diff options
Diffstat (limited to 'src/Container')
-rw-r--r-- | src/Container/Container.php | 10 | ||||
-rw-r--r-- | src/Container/ServiceProvider.php | 31 |
2 files changed, 41 insertions, 0 deletions
diff --git a/src/Container/Container.php b/src/Container/Container.php new file mode 100644 index 00000000..44c57b6f --- /dev/null +++ b/src/Container/Container.php @@ -0,0 +1,10 @@ +<?php + +namespace Engelsystem\Container; + +use Illuminate\Container\Container as IlluminateContainer; +use Psr\Container\ContainerInterface; + +class Container extends IlluminateContainer implements ContainerInterface +{ +} diff --git a/src/Container/ServiceProvider.php b/src/Container/ServiceProvider.php new file mode 100644 index 00000000..2a1bbebf --- /dev/null +++ b/src/Container/ServiceProvider.php @@ -0,0 +1,31 @@ +<?php + +namespace Engelsystem\Container; + +use Engelsystem\Application; + +abstract class ServiceProvider +{ + /** @var Application */ + protected $app; + + /** + * ServiceProvider constructor. + * + * @param Application $app + */ + public function __construct(Application $app) + { + $this->app = $app; + } + + /** + * Register container bindings + */ + public function register() { } + + /** + * Called after other services had been registered + */ + public function boot() { } +} |