I have created a piugin named SwagMasterAPI
. I have to get some products from different API. But when I try to add it to the service I am getting following error:
The service "SwagMasterApi\Service\CarService" has a dependency on a non-existent service "MasterDataApi\Model\Api".
Here are the files I have created.
carService.php
use MasterApi\Model\Api;
class CarService {
public function \_\_construct(Api $api) { $this-\>api = $api; }
services.xml
Problem