fsi-open/admin-bundle — pull request #105 by rn0 (2014-02-28 08:28:44+00:00)
Title: Invalid redirect after resource save

`AbstractFormValidRequestHandler::handleRequest` has hardcoded route:

```php
return new RedirectResponse($this->router->generate('fsi_admin_crud_list', array(
'element' => $event->getElement()->getId()
)));
```

This results to invalid redirect after **resource save**. Handler should redirect to `fsi_admin_resource`

```
ContextErrorException: Catchable Fatal Error: Argument 1 passed to FSi\Bundle\AdminBundle\Controller\CRUDController::listAction() must be an instance of FSi\Bundle\AdminBundle\Admin\CRUD\AbstractCRUD, instance of Dworek\Bundle\WebBundle\Admin\ContactElement given in /var/www/xxxx/vendor/fsi/admin-bundle/FSi/Bundle/AdminBundle/Controller/CRUDController.php line 52
```

We could fix this by introducing abstract method `getRedirectRouteName` to `AbstractFormValidRequestHandler`. Then each handler would have to implement this method and provide correct route.