| 1 | <?php |
||
| 10 | abstract class CacheServiceProvider extends AbstractServiceProvider |
||
| 11 | { |
||
| 12 | protected $provides = [ |
||
| 13 | CacheInterface::class, |
||
| 14 | ]; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Cache adapter. |
||
| 18 | * |
||
| 19 | * @return CacheInterface |
||
| 20 | */ |
||
| 21 | abstract public function adapter(): CacheInterface; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Use the register method to register items with the container via the |
||
| 25 | * protected $this->container property or the `getContainer` method |
||
| 26 | * from the ContainerAwareTrait. |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | 1 | public function register(): void |
|
| 34 | } |
||
| 35 |