Pink-Crab / Perique-Framework

The Perqiue Plugin Framework for WordPress
5 stars 0 forks source link

Create 'inject container' interface #37

Closed gin0115 closed 2 years ago

gin0115 commented 2 years ago

In various middlewares and other services, ive need to inject the container at a method level. This would be better suited to an interface 'Has_Container' which will expect a 'Set_Di_Container’ method. This could then be matched with a trait 'Inject_Container' that supplies the 'Set_Si_Container’ method and populates a property.