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

getConfig() public method

public getConfig ( )
    public function getConfig()
    {
        return $this->config;
    }

Usage Example

コード例 #1
0
 public function testGetters()
 {
     $config = $this->getMockBuilder(FirewallConfig::class)->disableOriginalConstructor()->getMock();
     $exceptionListener = $this->getMockBuilder(ExceptionListener::class)->disableOriginalConstructor()->getMock();
     $listeners = array($this->getMockBuilder(ListenerInterface::class)->disableOriginalConstructor()->getMock());
     $context = new FirewallContext($listeners, $exceptionListener, $config);
     $this->assertEquals(array($listeners, $exceptionListener), $context->getContext());
     $this->assertEquals($config, $context->getConfig());
 }
All Usage Examples Of Symfony\Bundle\SecurityBundle\Security\FirewallContext::getConfig