summaryrefslogtreecommitdiff
path: root/src/Container
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-09-22 14:02:02 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-09-22 14:13:19 +0200
commitd49e49c364c1b73e4e4e3b52dc10ee9d0150e447 (patch)
treefd61f2d661638d4fe973b522d0fca8d5d318f7dc /src/Container
parent783c58611ada88460ba670d51ebf4013563e1197 (diff)
Implemented service provider functionality
Diffstat (limited to 'src/Container')
-rw-r--r--src/Container/ServiceProvider.php31
1 files changed, 31 insertions, 0 deletions
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() { }
+}