1 | <?php |
||
14 | abstract class CachingEndpointFactory extends LoggingEndpointFactory |
||
15 | { |
||
16 | /** |
||
17 | * @var CacheItemPoolInterface |
||
18 | */ |
||
19 | protected $cachePool; |
||
20 | |||
21 | /** |
||
22 | * CachingEndpointFactory constructor. |
||
23 | * @param CacheItemPoolInterface $cachePool |
||
24 | * @param LoggerInterface $logger |
||
25 | */ |
||
26 | 1 | public function __construct(CacheItemPoolInterface $cachePool, LoggerInterface $logger) |
|
31 | |||
32 | /** |
||
33 | * @param string $name |
||
34 | * @param string $version |
||
35 | * @return LoggingEndpoint |
||
36 | */ |
||
37 | 1 | protected function getLoggingEndpoint(string $name, string $version): LoggingEndpoint |
|
43 | |||
44 | /** |
||
45 | * @param string $name |
||
46 | * @param string $version |
||
47 | * @return CachingEndpoint |
||
48 | */ |
||
49 | protected abstract function getCachingEndpoint(string $name, string $version): CachingEndpoint; |
||
50 | } |
||
51 |