TransactionListener implements EventSubscriberInterface
トランザクション制御のためのListener
Table of Contents
$em | EntityManagerInterface | |
---|---|---|
$isEnabled | bool | |
__construct() | TransactionListener constructor. | mixed |
disable() | Disable transaction listener. | mixed |
onKernelRequest() | Kernel request listener callback. | mixed |
onKernelException() | Kernel exception listener callback. | mixed |
onKernelTerminate() | Kernel terminate listener callback. | mixed |
getSubscribedEvents() | Return the events to subscribe to. | array |
Properties
$em
protected
EntityManagerInterface
$em
$isEnabled
protected
bool
$isEnabled
= true
Methods
__construct()
TransactionListener constructor.
public
__construct(
$em :
EntityManager
[, $isEnabled :
bool
= true ]
)
: mixed
Parameters
- $em : EntityManager
- $isEnabled : bool = true
Return values
mixeddisable()
Disable transaction listener.
public
disable(
)
: mixed
Return values
mixedonKernelRequest()
Kernel request listener callback.
public
onKernelRequest(
$event :
GetResponseEvent
)
: mixed
Parameters
- $event : GetResponseEvent
Return values
mixedonKernelException()
Kernel exception listener callback.
public
onKernelException(
$event :
GetResponseForExceptionEvent
)
: mixed
Parameters
- $event : GetResponseForExceptionEvent
Return values
mixedonKernelTerminate()
Kernel terminate listener callback.
public
onKernelTerminate(
$event :
PostResponseEvent
)
: mixed
Parameters
- $event : PostResponseEvent
Return values
mixedgetSubscribedEvents()
Return the events to subscribe to.
public
static getSubscribedEvents(
)
: array