Symfony\Bundle\SecurityBundle\Security\FirewallContext::getListeners PHP Method

getListeners() public method

public getListeners ( )
    public function getListeners()
    {
        return array($this->listeners, $this->exceptionListener);
    }

Usage Example

 public function testGetters()
 {
     $config = new FirewallConfig('main', 'user_checker', 'request_matcher');
     $exceptionListener = $this->getExceptionListenerMock();
     $listeners = array($this->getMockBuilder(ListenerInterface::class)->disableOriginalConstructor()->getMock());
     $context = new FirewallContext($listeners, $exceptionListener, $config);
     $this->assertEquals(array($listeners, $exceptionListener), $context->getListeners());
     $this->assertEquals($config, $context->getConfig());
 }