-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathOContainerInterface.php
42 lines (26 loc) · 1.02 KB
/
OContainerInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* code-segment
*
* @author liu hao<liu546hao@163.com>
* @copyright liu hao<liu546hao@163.com>
*/
interface OContainerInterface
{
public function bound($abstract);
public function alias($abstract, $alias);
public function tag($abstracts, $tags);
public function tagged($tag);
public function bind($abstract, $concrete = null, $shared = false);
public function bindIf($abstract, $concrete = null, $shared = false);
public function singleton($abstract, $concrete = null);
public function extend($abstract, Closure $closure);
public function instance($abstract, $instance);
public function when($concrete);
public function factory($abstract);
public function make($abstract, array $parameters = []);
public function call($callback, array $parameters = [], $defaultMethod = null);
public function resolved($abstract);
public function resolving($abstract, Closure $callback = null);
public function afterResolving($abstract, Closure $callback = null);
}