プログラムでログイン機能を実装しました。symfony2でプログラム的に私を覚えていますか?
このコードは以下の通りです:この後
$token = new UsernamePasswordToken($user, $user->getPassword(), 'main', $user->getRoles());
$this->get('security.context')->setToken($token);
$event = new InteractiveLoginEvent($this->getRequest(),$token);
$this->get('event_dispatcher')->dispatch('security.interactive_login', $event);
、私は私を覚えてどのように実装するのですか?
(私はフォームの使い方を知っていますが、私はプログラム的に私を覚えています。 )
助けてください...
一般的な画像については、[この質問](http://stackoverflow.com/questions/549)をチェックしてください。 – HamZa