FriendsOfSymfony/FOSUserBundle — Issue #424: Errors in overwriting controllers documentation
Author: chrisjohnson00
Created: 2011-12-01 01:28:09+00:00
State: open

First, thanks for writing this page... it was a great help.
Howerver, the code has a couple bugs in it
https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_controllers.md
1) It is missing a "use" at the top
```php
use Symfony\Component\HttpFoundation\RedirectResponse;
```
2) The logger is missing the container, should be
```php
$this->container->get('logger')->info(sprintf('New user registration: %s', $user));
```