1 | <?php |
||
26 | class PurgeSubscriber extends AccessControlledSubscriber |
||
27 | { |
||
28 | const DEFAULT_PURGE_METHOD = 'PURGE'; |
||
29 | |||
30 | /** |
||
31 | * The options configured in the constructor argument or default values. |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | private $options = []; |
||
36 | |||
37 | /** |
||
38 | * When creating this subscriber, you can configure a number of options. |
||
39 | * |
||
40 | * - purge_method: HTTP method that identifies purge requests. |
||
41 | * - purge_client_matcher: RequestMatcher to identify valid purge clients. |
||
42 | * - purge_client_ips: IP or array of IPs that are allowed to purge. |
||
43 | * |
||
44 | * Only set one of purge_client_ips and purge_client_matcher. |
||
45 | * |
||
46 | * @param array $options Options to overwrite the default options |
||
47 | * |
||
48 | * @throws \InvalidArgumentException if unknown keys are found in $options |
||
49 | */ |
||
50 | 6 | public function __construct(array $options = []) |
|
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public static function getSubscribedEvents() |
||
79 | |||
80 | /** |
||
81 | * Look at unsafe requests and handle purge requests. |
||
82 | * |
||
83 | * Prevents access when the request comes from a non-authorized client. |
||
84 | * |
||
85 | * @param CacheEvent $event |
||
86 | */ |
||
87 | 5 | public function handlePurge(CacheEvent $event) |
|
108 | } |
||
109 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.