class DoctrineHandler extends AbstractProcessingHandler (View source)

A log system which store message in database.

Properties

protected $em
protected $tokenStorage
protected $user
protected $request

Methods

__construct(EntityManager $em, TokenStorageInterface $tokenStorage, Request $request, $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

Request
getRequest()

No description

$this
setRequest(Request $request)

No description

write(array $record)

No description

Details

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

Parameters

EntityManager $em
TokenStorageInterface $tokenStorage
Request $request
$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

Request getRequest()

Return Value

Request

$this setRequest(Request $request)

Parameters

Request $request

Return Value

$this

write(array $record)

Parameters

array $record