Silex Security success_handler

Como posso definir um success_handler (e failure_handler) para o provedor de autenticação de formulário?

Silex me ignora com essa configuração:

<?php

use WebFactory\Security\UserProvider;

$app->register(new Silex\Provider\SecurityServiceProvider(), array(
    'security.firewalls' => array(
        'dev' => array(
            'pattern' => '^/(_(profiler|wdt)|css|images|js)/',
            'security' => false
        ),
        'default' => array(
            'pattern' => '^/.*

E isso meu costume (nunca invocado)

$app['authentication_handler'] = $app->share(function ($app) {
            return new \WebFactory\Security\AuthenticationHandler($app['url_generator']);
        });

É um bug?

, 'anonymous' => true, 'form' => array( 'login_path' => '/login', 'check_path' => '/login_check', 'success_handler' => 'authentication_handler', //<-- here 'failure_handler' => 'authentication_handler', //<-- here ), 'logout' => array('logout_path' => '/logout'), 'users' => $app->share(function () use ($app) { return new UserProvider($app['db']); }), ), ), 'security.access_rules' => array( array('^/login', 'IS_AUTHENTICATED_ANONYMOUSLY'), array('^/private

E isso meu costume (nunca invocado)

$app['authentication_handler'] = $app->share(function ($app) {
            return new \WebFactory\Security\AuthenticationHandler($app['url_generator']);
        });

É um bug?

, 'ROLE_ADMIN'), ), 'security.role_hierarchy' => array( 'ROLE_SIMPLE_USER' => array('ROLE_USER'), 'ROLE_ASSOCIATE' => array('ROLE_USER'), ) ));

E isso meu costume (nunca invocado)

$app['authentication_handler'] = $app->share(function ($app) {
            return new \WebFactory\Security\AuthenticationHandler($app['url_generator']);
        });

É um bug?

questionAnswers(1)

yourAnswerToTheQuestion