nikarayan and payment service
This commit is contained in:
30
app/Providers/NikarayanServiceProvider.php
Normal file
30
app/Providers/NikarayanServiceProvider.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Services\NikarayanService;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use SoapClient;
|
||||
|
||||
class NikarayanServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$this->app->bind(NikarayanServiceProvider::class, function () {
|
||||
$url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl";
|
||||
$soapClient = new SoapClient($url);
|
||||
return new NikarayanService($soapClient);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user