Symfony2 Registration and Login

It would be good to have a workign application code for download.
For me it is not clear how is implemented login and login_check actions in Security controller.

regards,