1 | <?php |
||
25 | trait ContainerAwareTrait |
||
26 | { |
||
27 | /** |
||
28 | * @return Container |
||
29 | */ |
||
30 | 15 | public function getDi() |
|
34 | |||
35 | /** |
||
36 | * Gets a class from the container. |
||
37 | * |
||
38 | * @param string $class he class name or an alias name (e.g. `foo`) that was previously registered via [[set()]] |
||
39 | * or [[setSingleton()]] |
||
40 | * @param array $params constructor parameters |
||
41 | * @param array $config attributes |
||
42 | * |
||
43 | * @throws InvalidConfigException |
||
44 | * @return object |
||
45 | */ |
||
46 | 15 | public function make($class, $params = [], $config = []) |
|
50 | |||
51 | /** |
||
52 | * @throws InvalidConfigException |
||
53 | * @return \Da\User\Helper\AuthHelper|object |
||
54 | * |
||
55 | */ |
||
56 | 2 | public function getAuth() |
|
60 | |||
61 | /** |
||
62 | * @throws InvalidConfigException |
||
63 | * @return \Da\User\Helper\ClassMapHelper|object |
||
64 | * |
||
65 | */ |
||
66 | 11 | public function getClassMap() |
|
70 | } |
||
71 |