| Conditions | 1 |
| Paths | 1 |
| Total Lines | 28 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 15 | public function register(Container $app) |
||
| 16 | { |
||
| 17 | $app->extend('data_collectors', function ($collectors) { |
||
| 18 | $collectors[PushServerDataCollector::NAME] = function ($app) { |
||
| 19 | return new PushServerDataCollector($app['sandstone.push']); |
||
| 20 | }; |
||
| 21 | |||
| 22 | return $collectors; |
||
| 23 | }); |
||
| 24 | |||
| 25 | $app['data_collector.templates'] = $app->extend('data_collector.templates', function ($templates) { |
||
| 26 | $templates []= array( |
||
| 27 | PushServerDataCollector::NAME, |
||
| 28 | 'push-messages.html.twig', |
||
| 29 | ); |
||
| 30 | |||
| 31 | return $templates; |
||
| 32 | }); |
||
| 33 | |||
| 34 | $app['twig.loader.filesystem'] = $app->extend( |
||
| 35 | 'twig.loader.filesystem', |
||
| 36 | function (Twig_Loader_Filesystem $loader) { |
||
| 37 | $loader->addPath(__DIR__.'/DataCollector/views'); |
||
| 38 | |||
| 39 | return $loader; |
||
| 40 | } |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |