schranz-templating / templating

A template abstraction prototype for php template engines.
MIT License
24 stars 0 forks source link

Blade: Provide Factory Service over ContractFactory instead of Factory #57

Open alexander-schranz opened 1 year ago

alexander-schranz commented 1 year ago

Currently the service definition which is used is:

use Illuminate\View\Factory;

But as shown by @butschster here: https://github.com/schranz-templating/templating/pull/56/files#diff-7aeef8d8c609cf605db9f3d3ef26adacdbe09dee1fd4f4c974b26519ea770b79R122-R127

There exist also:

use Illuminate\Contracts\View\Factory as FactoryContract;

Which instead could be used.

Requires: illuminate/contracts.