| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function register(Container $app) |
||
| 15 | { |
||
| 16 | if (!$app->offsetExists('sandstone.push.enabled')) { |
||
| 17 | $app['sandstone.push.enabled'] = true; |
||
| 18 | } |
||
| 19 | |||
| 20 | $app['sandstone.push.event_serializer'] = function () use ($app) { |
||
| 21 | return new EventSerializer($app['serializer']); |
||
| 22 | }; |
||
| 23 | |||
| 24 | $app['sandstone.push.event_forwarder'] = function () use ($app) { |
||
| 25 | return new EventForwarder( |
||
| 26 | $app['sandstone.push'], |
||
| 27 | $app['dispatcher'], |
||
| 28 | $app['sandstone.push.event_serializer'], |
||
| 29 | $app['sandstone.push.enabled'] |
||
| 30 | ); |
||
| 31 | }; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |