This commit is contained in:
denisdulici
2018-12-18 22:14:05 +03:00
parent f3986734fc
commit 2fe51b6550
5 changed files with 13 additions and 25 deletions

View File

@ -1,10 +1,10 @@
<?php
namespace Modules\PaypalStandard\Events\Handlers;
namespace Modules\PaypalStandard\Listeners;
use App\Events\PaymentGatewayListing;
class PaypalStandardGateway
class Gateway
{
/**
* Handle the event.

View File

@ -2,10 +2,9 @@
namespace Modules\PaypalStandard\Providers;
use Illuminate\Support\ServiceProvider;
use App\Events\PaymentGatewayListing;
use Modules\PaypalStandard\Listeners\PaypalStandardGateway;
use Illuminate\Support\ServiceProvider;
use Modules\PaypalStandard\Listeners\Gateway;
class PaypalStandardServiceProvider extends ServiceProvider
{
@ -25,8 +24,6 @@ class PaypalStandardServiceProvider extends ServiceProvider
{
$this->registerTranslations();
$this->registerViews();
$this->registerMigrations();
$this->registerEvents();
}
@ -76,14 +73,9 @@ class PaypalStandardServiceProvider extends ServiceProvider
}
}
public function registerMigrations()
{
$this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
}
public function registerEvents()
{
$this->app['events']->listen(PaymentGatewayListing::class, PaypalStandardGateway::class);
$this->app['events']->listen(PaymentGatewayListing::class, Gateway::class);
}
/**