Replaced deprecated "->setFlash" with "->getFlashbag()->set"