remove nikarayan service provider

This commit is contained in:
2024-04-20 11:05:12 +03:30
parent bc47eeafd5
commit 3fe1ed3746
4 changed files with 7 additions and 42 deletions

View File

@@ -1,30 +0,0 @@
<?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(NikarayanService::class, function () {
$url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl";
$soapClient = new SoapClient($url);
return new NikarayanService($soapClient);
});
}
}