| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function register() |
||
| 16 | { |
||
| 17 | $this->app->singleton('ciromattia.teamwork', function ($app) { |
||
| 18 | $client = new \Ciromattia\Teamwork\Client(new Guzzle, |
||
| 19 | $app['config']->get('services.teamwork.key'), |
||
| 20 | $app['config']->get('services.teamwork.url') |
||
| 21 | ); |
||
| 22 | |||
| 23 | return new \Ciromattia\Teamwork\Factory($client); |
||
| 24 | }); |
||
| 25 | |||
| 26 | $this->app->bind('Ciromattia\Teamwork\Factory', 'ciromattia.teamwork'); |
||
| 27 | } |
||
| 28 | } |