| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Yani\Coinbase; |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | $this->mergeConfigFrom(__DIR__ . '/../../config/config.php', 'coinbase'); |
||
| 34 | |||
| 35 | $this->app->singleton('coinbase', function ($app) { |
||
| 36 | return new CoinbaseClient( |
||
| 37 | new Guzzle, |
||
| 38 | $app['config']->get('coinbase.apiKey'), |
||
| 39 | $app['config']->get('coinbase.apiSecret'), |
||
| 40 | $app['config']->get('coinbase.endpoint') |
||
| 41 | ); |
||
| 42 | }); |
||
| 43 | } |
||
| 44 | |||
| 55 |