We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae89dfb commit 929a52eCopy full SHA for 929a52e
src/Caching/EventListener.php
@@ -84,21 +84,4 @@ public function onKernelResponse(ResponseEvent $event)
84
$response->setLastModified($this->lastTouchedResults[$request]);
85
}
86
87
-
88
- /**
89
- * @param $callback array A PHP callback (array) pointing to the method to reflect on.
90
- */
91
- protected function findAttribute($callback): ?Send304IfNotModified
92
- {
93
- if (!\is_array($callback)) {
94
- return null;
95
- }
96
97
- $object = new ReflectionObject($callback[0]);
98
- $method = $object->getMethod($callback[1]);
99
100
- $attributes = $method->getAttributes(Send304IfNotModified::class);
101
102
- return $attributes ? $attributes[0]->newInstance() : null;
103
104
0 commit comments