I have binding in the service provider
$this->app->singleton(
'App\Models\Subscription\Interfaces\IInvoiceService',
'App\Models\Subscription\Impl\InvoiceService'
);
class InvoiceService implements IInvoiceService
{
protected $repo;
public function _construct(){
$this->app = App::getFacadeRoot();
$this->repo = $this->app['repo'];
}
public function Create()
{
}
}
In one of the classes in Injected the IInovoice Service.
I am getting the concrete implementation of IInovoice . but the Constructor of the InvoiceService is never getting called
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ORHmKT
via IFTTT
Aucun commentaire:
Enregistrer un commentaire