| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Davispeixoto\Laravel5Salesforce; |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | $config = __DIR__ . '/config/config.php'; |
||
| 34 | $this->mergeConfigFrom($config, 'salesforce'); |
||
| 35 | $this->publishes([$config => config_path('salesforce.php')]); |
||
| 36 | |||
| 37 | $this->app->singleton('salesforce', function ($app) { |
||
| 38 | $sf = new Salesforce(new Client()); |
||
| 39 | $sf->connect($app['config']); |
||
| 40 | |||
| 41 | return $sf; |
||
| 42 | }); |
||
| 43 | } |
||
| 44 | |||
| 55 |