Skip to content

Commit

Permalink
Updated for L5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Jun 24, 2017
1 parent c974c01 commit d79d0fd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"php": ">=5.6.0",
"guzzlehttp/guzzle": "~6.0",
"predis/predis": "~1.0",
"paynl/sdk": "^1.1"
"paynl/sdk": "^1.3"
},
"autoload": {
"files": [
Expand Down
4 changes: 3 additions & 1 deletion src/Facade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace LaraPay;
<?php

namespace LaraPay;

class Facade extends \Illuminate\Support\Facades\Facade
{
Expand Down
8 changes: 5 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php namespace LaraPay;
<?php

namespace LaraPay;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
Expand Down Expand Up @@ -30,8 +32,8 @@ public function register()
'config/larapay.php',
]);

$this->app['larapay'] = $this->app->share(function ($app) {
return new LaraPay();
$this->app->singleton(Larapay::class, function ($app) {
return new Larapay();
});
}
}
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

function pay()
{
return new LaraPay\LaraPay();
return new LaraPay\LaraPay;
}

0 comments on commit d79d0fd

Please sign in to comment.