-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fc8de9
commit b221711
Showing
4 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
<?php namespace Spatie\Checkout; | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
namespace Spatie\Checkout; | ||
|
||
class CheckoutFacade extends Facade { | ||
use Illuminate\Support\Facades\Facade; | ||
|
||
class CheckoutFacade extends Facade | ||
{ | ||
/** | ||
* Get the binding in the IoC container | ||
* @see \Spatie\Checkout\Checkout | ||
* | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return 'checkout'; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<?php namespace Spatie\Checkout; | ||
<?php | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
namespace Spatie\Checkout; | ||
|
||
class CheckoutServiceProvider extends ServiceProvider { | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
/** | ||
* Create binding | ||
*/ | ||
class CheckoutServiceProvider extends ServiceProvider | ||
{ | ||
public function register() | ||
{ | ||
$this->app->bindShared('checkout', function() | ||
{ | ||
$this->app->singleton(Checkout::class, function () { | ||
return $this->app->make('Spatie\Checkout\Checkout'); | ||
}); | ||
} | ||
|
||
} | ||
$this->app->alias(Checkout::class); | ||
} | ||
} |