[CORE][Controller][FeedController] Use controller instance for filtering, making FeedControler->postProcess function non-static

This commit is contained in:
Hugo Sales 2021-12-30 18:26:32 +00:00
parent ba078b7b76
commit b7872ba4ee
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -136,8 +136,6 @@ abstract class Controller extends AbstractController implements EventSubscriberI
if (\is_array($controller)) {
$controller = $controller[0];
}
// XXX: Could we do this differently?
if (is_subclass_of($controller, FeedController::class)) {
$this->vars = $controller->postProcess($this->vars);
}