mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
35 lines
700 B
PHP
35 lines
700 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Billing\PaymentGateway;
|
|
use App\Billing\StripePaymentGateway;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
$this->app->bind(StripePaymentGateway::class, function () {
|
|
return new StripePaymentGateway(config('services.stripe.secret'));
|
|
});
|
|
|
|
$this->app->bind(PaymentGateway::class, StripePaymentGateway::class);
|
|
}
|
|
}
|