| 1 | <?php |
||
| 24 | class RefreshSubscriber extends AccessControlledSubscriber |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | 1 | public static function getSubscribedEvents() |
|
| 30 | { |
||
| 31 | return [ |
||
| 32 | 1 | Events::PRE_HANDLE => 'handleRefresh', |
|
| 33 | 1 | ]; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Look at safe requests and handle refresh requests. |
||
| 38 | * |
||
| 39 | * Ignore refresh to let normal lookup happen when the request comes from |
||
| 40 | * a non-authorized client. |
||
| 41 | * |
||
| 42 | * @param CacheEvent $event |
||
| 43 | */ |
||
| 44 | 6 | public function handleRefresh(CacheEvent $event) |
|
| 58 | } |
||
| 59 |