]> source.dussan.org Git - nextcloud-server.git/commitdiff
Introducing IContainer into public api
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 20 Aug 2013 15:22:33 +0000 (17:22 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 20 Aug 2013 15:22:33 +0000 (17:22 +0200)
lib/public/core/icontainer.php [new file with mode: 0644]

diff --git a/lib/public/core/icontainer.php b/lib/public/core/icontainer.php
new file mode 100644 (file)
index 0000000..a6c93ab
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+
+namespace OCP\Core;
+
+/**
+ * Class IContainer
+ *
+ * IContainer is the basic interface to be used for any internal dependency injection mechanism
+ *
+ * @package OCP\Core
+ */
+interface IContainer {
+
+       function query($name);
+
+       function registerParameter($name, $value);
+
+       function registerService($name, \Closure $closure, $shared = true);
+}