1 | <?php |
||
12 | class EventTemplateConverter implements ParamConverterInterface { |
||
13 | const PARAM_TYPE = 'mongodb_watchdog_event_template'; |
||
14 | |||
15 | /** |
||
16 | * The core logger channel service. |
||
17 | * |
||
18 | * @var \Psr\Log\LoggerInterface |
||
19 | */ |
||
20 | protected $logger; |
||
21 | |||
22 | /** |
||
23 | * The MongoDB logger service, to load events. |
||
24 | * |
||
25 | * @var \Drupal\mongodb_watchdog\Logger |
||
26 | */ |
||
27 | protected $watchdog; |
||
28 | |||
29 | /** |
||
30 | * EventTemplateConverter constructor. |
||
31 | * |
||
32 | * @param \Psr\Log\LoggerInterface $logger |
||
33 | * The logger service, to log intervening events. |
||
34 | * @param \Drupal\mongodb_watchdog\Logger $watchdog |
||
35 | * The MongoDB logger, to load event templates. |
||
36 | */ |
||
37 | public function __construct(LoggerInterface $logger, Logger $watchdog) { |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function convert($value, $definition, $name, array $defaults) { |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public function applies($definition, $name, Route $route) { |
||
76 | |||
77 | } |
||
|
|||
78 |
This check marks files that end in a newline character, i.e. an empy line.