WebDevStudios / oops-wp

A collection of abstract classes, interfaces, and traits to promote object-oriented programming practices in WordPress.
57 stars 9 forks source link

Change visibility of init_services method from private to protected #24

Closed jmichaelward closed 5 years ago

jmichaelward commented 5 years ago

Closes #23.

Merging this and bumping to 0.2.1. This change will enable engineers to override the init_services method in classes which extend Plugin.

jmichaelward commented 5 years ago

This change has no backward-compatibility breaking implications; it merely opens up the ServiceRegistrar's init_services method to allow extending classes to override how Service objects are created. This will enable the use of dependency injection containers like Auryn in places where use of such a package is desired.