class DoctrineHandler extends AbstractProcessingHandler (View source)

A log system which store message in database.

Properties

protected EntityManager|null $em
protected null|TokenStorageInterface $tokenStorage
protected null|User $user
protected RequestStack $requestStack

Methods

__construct(EntityManager $em, TokenStorageInterface $tokenStorage, RequestStack $requestStack, $level = Logger::DEBUG, $bubble = true)

No description

TokenStorageInterface
getTokenStorage()

No description

$this
setTokenStorage(TokenStorageInterface $tokenStorage)

No description

getUser()

No description

$this
setUser(User $user)

No description

RequestStack
getRequestStack()

No description

setRequestStack(RequestStack $requestStack)

No description

write(array $record)

No description

Details

__construct(EntityManager $em, TokenStorageInterface $tokenStorage, RequestStack $requestStack, $level = Logger::DEBUG, $bubble = true)

Parameters

EntityManager $em
TokenStorageInterface $tokenStorage
RequestStack $requestStack
$level
$bubble

TokenStorageInterface getTokenStorage()

Return Value

TokenStorageInterface

$this setTokenStorage(TokenStorageInterface $tokenStorage)

Parameters

TokenStorageInterface $tokenStorage

Return Value

$this

User getUser()

Return Value

User

$this setUser(User $user)

Parameters

User $user

Return Value

$this

RequestStack getRequestStack()

Return Value

RequestStack

DoctrineHandler setRequestStack(RequestStack $requestStack)

Parameters

RequestStack $requestStack

Return Value

DoctrineHandler

write(array $record)

Parameters

array $record