| 1 | <?php |
||
| 21 | class Bootstrap |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string[]|FunctionNode[] |
||
| 25 | */ |
||
| 26 | private const DQL_FUNCTIONS = [ |
||
| 27 | 'RAW' => RawFunction::class, |
||
| 28 | 'FIELD' => FieldFunction::class, |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param EntityManagerInterface $em |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | 1 | public function register(EntityManagerInterface $em): void |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @param Configuration $config |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | 1 | private function registerDQLFunctions(Configuration $config): void |
|
| 52 | } |
||
| 53 |