/** * {@inheritdoc} */ public function clear() { if ($this->flashBag) { $this->flashBag->clear(); return; } $this->flashes = []; }