Fix deprecated flash message usage

Replace:

    $this->flashMessages->add("foo");

with

    $this->addFlashMessage("foo");