bytic /
container
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Nip\Container\Legacy\Container\Traits; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Trait DeprecatedMethodsTrait |
||
| 7 | * @package Nip\Container\Legacy\Container\Traits |
||
| 8 | */ |
||
| 9 | trait DeprecatedMethodsTrait |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Register a shared binding in the container. |
||
| 14 | * |
||
| 15 | * @param string|array $abstract |
||
| 16 | * @param \Closure|string|null $concrete |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | * @deprecated Use new Share method instead |
||
| 20 | */ |
||
| 21 | public function singleton($abstract, $concrete = null) |
||
| 22 | { |
||
| 23 | return $this->share($abstract, $concrete); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 24 | } |
||
| 25 | } |
||
| 26 |