PHP Class Contao\CoreBundle\Monolog\ContaoTableProcessor

Inheritance: use trait Contao\CoreBundle\Framework\ScopeAwareTrait
Show file Open project: contao/core-bundle

Public Methods

Method Description
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, boolean $anonymizeIp = true ) Constructor.
__invoke ( array $record ) : array Move the Contao context into the "extra" section.

Private Methods

Method Description
anonymizeIp ( string $ip ) : string Anonymizes the IP adress.
updateAction ( ContaoContext $context, integer $level ) Sets the action.
updateBrowser ( ContaoContext $context, Request $request = null ) Sets the browser.
updateIp ( ContaoContext $context, Request $request = null ) Sets the IP adress.
updateSource ( ContaoContext $context ) Sets the source.
updateUsername ( ContaoContext $context ) Sets the username.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, boolean $anonymizeIp = true )
$requestStack Symfony\Component\HttpFoundation\RequestStack
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$anonymizeIp boolean

__invoke() public method

Move the Contao context into the "extra" section.
public __invoke ( array $record ) : array
$record array
return array