| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function register() |
||
| 36 | { |
||
| 37 | $this->app->bind(EnvInterface::class, function(){ |
||
| 38 | $env = $this->app['config']['app']['env']; |
||
| 39 | if($env == strtolower('production')){ |
||
| 40 | return new Production(env('PAGSEGURO_EMAIL'), env('PAGSEGURO_TOKEN')); |
||
| 41 | } |
||
| 42 | return new SandBox(env('PAGSEGURO_EMAIL_SANDBOX'), env('PAGSEGURO_TOKEN_SANBOX')); |
||
| 43 | }); |
||
| 44 | |||
| 45 | $this->app->bind('InitialState',function(){ |
||
| 46 | return new WaitingPayment(); |
||
| 47 | }); |
||
| 48 | |||
| 49 | $this->app->bind(SubscriptionInterface::class,function(){ |
||
| 50 | return new Subscription(); |
||
| 51 | }); |
||
| 53 | } |