Current File : /home/inlingua/www/crm.vprotectindia.com/vendor/softon/indipay/src/IndipayServiceProvider.php |
<?php namespace Softon\Indipay;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\ServiceProvider;
class IndipayServiceProvider extends ServiceProvider {
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$gateway = Config::get('indipay.gateway');
$this->app->bind('indipay', 'Softon\Indipay\Indipay');
$this->app->bind('Softon\Indipay\Gateways\PaymentGatewayInterface','Softon\Indipay\Gateways\\'.$gateway.'Gateway');
}
public function boot(){
$this->publishes([
__DIR__.'/config/config.php' => base_path('config/indipay.php'),
__DIR__.'/views/middleware.blade.php' => base_path('app/Http/Middleware/VerifyCsrfMiddleware.php'),
]);
$this->loadViewsFrom(__DIR__.'/views', 'indipay');
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [
];
}
}