| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function register() |
||
| 30 | { |
||
| 31 | $this->app->singleton('elephant.io', function($app){ |
||
| 32 | $config = $app['config']->get('elephant-io'); |
||
| 33 | |||
| 34 | $options = array('debug' => $config['debug']); |
||
| 35 | |||
| 36 | return new Client(new Version1X($config['url'], $options)); |
||
| 37 | }); |
||
| 38 | |||
| 39 | $this->app->singleton('laravel.elephantio', function($app){ |
||
| 40 | return new LaraElephantIO($app['elephant.io']); |
||
| 41 | }); |
||
| 42 | } |
||
| 43 | } |