Contao\CoreBundle\Test\Monolog\ContaoTableProcessorTest::createContaoTableProcessor PHP Method

createContaoTableProcessor() private method

Creates the ContaoTableProcessor object.
private createContaoTableProcessor ( Symfony\Component\HttpFoundation\RequestStack $requestStack = null, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, boolean $anonymizeIp = true ) : ContaoTableProcessor
$requestStack Symfony\Component\HttpFoundation\RequestStack
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$anonymizeIp boolean
return Contao\CoreBundle\Monolog\ContaoTableProcessor
    private function createContaoTableProcessor($requestStack = null, $tokenStorage = null, $anonymizeIp = true)
    {
        if (null === $requestStack) {
            $requestStack = $this->getMock('Symfony\\Component\\HttpFoundation\\RequestStack');
        }
        if (null === $tokenStorage) {
            $tokenStorage = $this->getMock('Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface');
        }
        return new ContaoTableProcessor($requestStack, $tokenStorage, $anonymizeIp);
    }