Introducing IContainer into public api
This commit is contained in:
parent
93194bb396
commit
6e1946ab00
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue