| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | |||
| 12 | final readonly class ProfilerProvider implements Provider |
||
|
|
|||
| 13 | { |
||
| 14 | public function __construct(private LoggerInterface $logger) |
||
| 15 | { |
||
| 16 | } |
||
| 17 | |||
| 18 | #[Override] |
||
| 19 | public function get(): Profiler |
||
| 20 | { |
||
| 21 | $profiler = new Profiler($this->logger); |
||
| 22 | $profiler->setLogFormat('{duration}: {function} {statement}:{values}'); |
||
| 23 | $profiler->setActive(true); |
||
| 24 | |||
| 25 | return $profiler; |
||
| 26 | } |
||
| 27 | } |
||
| 28 |