Skip to content

Instantly share code, notes, and snippets.

@ndusan
ndusan / SecurityController.php
Created August 4, 2011 08:23 — forked from immutef/SecurityController.php
Symfony2 Security Form Login
<?php // src/Application/UserBundle/Controller/SecurityController.php
namespace Application\UserBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller,
Symfony\Component\Security\SecurityContext;
class SecurityController extends Controller
{
public function loginAction()