| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class DefinitionCacheWarmer extends CacheWarmer implements EventSubscriberInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var DefinitionRegistry |
||
| 25 | */ |
||
| 26 | protected $registry; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * DefinitionCacheWarmer constructor. |
||
| 30 | * |
||
| 31 | * @param DefinitionRegistry $registry |
||
| 32 | */ |
||
| 33 | public function __construct(DefinitionRegistry $registry) |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | */ |
||
| 41 | public function isOptional() |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritDoc} |
||
| 48 | */ |
||
| 49 | public function warmUp($cacheDir) |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * warmUp the cache on request |
||
| 56 | * NOTE: this behavior its switched in the YnloGraphQLExtension |
||
| 57 | */ |
||
| 58 | public function warmUpOnEveryRequest() |
||
| 59 | { |
||
| 60 | $this->warmUp(null); |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * {@inheritDoc} |
||
| 65 | */ |
||
| 66 | public static function getSubscribedEvents() |
||
| 70 | ]; |
||
| 71 | } |
||
| 73 |