resolve the dependency injection
This commit is contained in:
@@ -21,7 +21,7 @@ class NikarayanServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$this->app->bind(NikarayanServiceProvider::class, function () {
|
||||
$this->app->bind(NikarayanService::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