DoctrineExtension
extends CompilerExtension
in package
Table of Contents
Methods
- beforeCompile() : void
- loadConfiguration() : void
- Registers the Doctrine participant of the operation scope. It owns the unit of work at the boundaries of a root operation (reads never clear), so it is always there. It must happen here, before Nettrine collects event subscribers in its `beforeCompile()`.
- buildLogPolicy() : Statement
- getOperationParameters() : array<string|int, mixed>
- resolveContractViolation() : bool|null
- `auto` gives null: the participant decides by `Debugger::$productionMode` at runtime.
Methods
beforeCompile()
public
beforeCompile() : void
loadConfiguration()
Registers the Doctrine participant of the operation scope. It owns the unit of work at the boundaries of a root operation (reads never clear), so it is always there. It must happen here, before Nettrine collects event subscribers in its `beforeCompile()`.
public
loadConfiguration() : void
contractViolation (auto = throw outside Tracy production mode, throw, log) and log
(summary/verbose + logThreshold) are validated here, so a typo fails the compilation.
buildLogPolicy()
private
static buildLogPolicy(array<string|int, mixed> $operations) : Statement
Parameters
- $operations : array<string|int, mixed>
Return values
StatementgetOperationParameters()
private
static getOperationParameters(array<string|int, mixed> $parameters) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
Return values
array<string|int, mixed>resolveContractViolation()
`auto` gives null: the participant decides by `Debugger::$productionMode` at runtime.
private
static resolveContractViolation(array<string|int, mixed> $operations) : bool|null
Parameters
- $operations : array<string|int, mixed>