private function loadLogoutListener(AuthenticationProviderInterface $bbProvider)
    {
        if (null === $this->_context->getLogoutListener()) {
            $httpUtils = new HttpUtils();
            $this->_context->setLogoutListener(
                new LogoutListener($this->_context, $httpUtils, new BBLogoutSuccessHandler($httpUtils))
            );
        }

        $this->_context->getLogoutListener()->addHandler(new BBLogoutHandler($bbProvider));
    }
private function loadLogoutListener(AuthenticationProviderInterface $bbProvider)
    {
        if (null === $this->_context->getLogoutListener()) {
            $httpUtils = new HttpUtils();
            $this->_context->setLogoutListener(
                new LogoutListener($this->_context, $httpUtils, new BBLogoutSuccessHandler($httpUtils))
            );
        }

        $this->_context->getLogoutListener()->addHandler(new BBLogoutHandler($bbProvider));
    }
private function loadLogoutListener ( AuthenticationProviderInterface $ bbProvider ) { if ( null === $ this -> _context -> getLogoutListener ( ) ) { $ httpUtils = new HttpUtils ( ) ; $ this -> _context -> setLogoutListener ( new LogoutListener ( $ this -> _context , $ httpUtils , new BBLogoutSuccessHandler ( $ httpUtils ) ) ) ; } $ this -> _context -> getLogoutListener ( ) -> addHandler ( new BBLogoutHandler ( $ bbProvider ) ) ; }
Load LogoutListener into security context.

@param AuthenticationProviderInterface $bbProvider
Load LogoutListener into security context .