| 1 | <?php |
||
| 11 | class PhpCacheProvider implements DefinitionProviderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var callable[] |
||
| 15 | */ |
||
| 16 | private $pools = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param callable[] $pools |
||
| 20 | */ |
||
| 21 | public function __construct(array $pools) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the definition to register in the container. |
||
| 28 | * |
||
| 29 | * Definitions must be indexed by their entry ID. For example: |
||
| 30 | * |
||
| 31 | * return [ |
||
| 32 | * 'logger' => ... |
||
| 33 | * 'mailer' => ... |
||
| 34 | * ]; |
||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | public function getDefinitions() |
||
| 58 | } |
||
| 59 |