| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function __invoke( |
||
| 37 | ContainerInterface $container, |
||
| 38 | $requestedName, |
||
| 39 | array $options = null |
||
| 40 | ) : SentryLoggerInterface { |
||
| 41 | /** @var SentryLoggerConfigInterface $sentryLoggerConfig */ |
||
| 42 | $sentryLoggerConfig = $container->get(SentryLoggerConfig::class); |
||
| 43 | |||
| 44 | $sentryClient = new Raven_Client($sentryLoggerConfig->getDsn(), $sentryLoggerConfig->getOptions()); |
||
| 45 | |||
| 46 | return new SentryLogger($sentryClient); |
||
| 47 | } |
||
| 50 |