diff --git a/security/login_link.rst b/security/login_link.rst index 456cfc706c6..34705d28983 100644 --- a/security/login_link.rst +++ b/security/login_link.rst @@ -660,8 +660,10 @@ Customizing the Success Handler Sometimes, the default success handling does not fit your use-case (e.g. when you need to generate and return an API key). To customize how the -success handler behaves, create your own -:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface`:: +success handler behaves, create your own that must implement +:class:`Symfony\\Component\\Security\\Http\\Authentication\\AuthenticationSuccessHandlerInterface`. + +.. code-block:: php // src/Security/Authentication/AuthenticationSuccessHandler.php namespace App\Security\Authentication;