Skip to content

Commit

Permalink
Remove a method that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Oct 28, 2024
1 parent ae89dfb commit 929a52e
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/Caching/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 929a52e

Please sign in to comment.