From 929a52e69dfe42d7b5740e4799e9895c0b59ba6a Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Mon, 28 Oct 2024 18:37:34 +0100 Subject: [PATCH] Remove a method that is no longer needed --- src/Caching/EventListener.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/Caching/EventListener.php b/src/Caching/EventListener.php index 6d49707..42bd1cd 100644 --- a/src/Caching/EventListener.php +++ b/src/Caching/EventListener.php @@ -84,21 +84,4 @@ public function onKernelResponse(ResponseEvent $event) $response->setLastModified($this->lastTouchedResults[$request]); } } - - /** - * @param $callback array A PHP callback (array) pointing to the method to reflect on. - */ - protected function findAttribute($callback): ?Send304IfNotModified - { - if (!\is_array($callback)) { - return null; - } - - $object = new ReflectionObject($callback[0]); - $method = $object->getMethod($callback[1]); - - $attributes = $method->getAttributes(Send304IfNotModified::class); - - return $attributes ? $attributes[0]->newInstance() : null; - } }