| 1 | <?php |
||
| 24 | trait ContainerAwareTrait |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @return Container |
||
| 28 | */ |
||
| 29 | 10 | public function getDi() |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Gets a class from the container. |
||
| 36 | * |
||
| 37 | * @param string $class he class name or an alias name (e.g. `foo`) that was previously registered via [[set()]] |
||
| 38 | * or [[setSingleton()]] |
||
| 39 | * @param array $params constructor parameters |
||
| 40 | * @param array $config attributes |
||
| 41 | * |
||
| 42 | * @return object |
||
| 43 | */ |
||
| 44 | 10 | public function make($class, $params = [], $config = []) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return \Da\User\Helper\AuthHelper |
||
| 51 | */ |
||
| 52 | 2 | public function getAuth() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return \Da\User\Helper\ClassMapHelper |
||
| 59 | */ |
||
| 60 | 4 | public function getClassMap() |
|
| 64 | } |
||
| 65 |