Skip to content

Commit 929a52e

Browse files
committed
Remove a method that is no longer needed
1 parent ae89dfb commit 929a52e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Caching/EventListener.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,4 @@ public function onKernelResponse(ResponseEvent $event)
8484
$response->setLastModified($this->lastTouchedResults[$request]);
8585
}
8686
}
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-
}
10487
}

0 commit comments

Comments
 (0)