Pink-Crab / Perique-Framework

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

[V2] Remove the DI_Container and Hook_Loader from Middleware #147

Closed gin0115 closed 1 year ago

gin0115 commented 1 year ago

Registration Middleware currently has the following defined on the Interface


/**
 * Set the hook loader.
 *
 * @param Hook_Loader $hook_loader
 */
public function set_hook_loader( Hook_Loader $hook_loader ): void;

/**
 * Set the DI Container
 *
 * @param DI_Container $container
 */
public function set_di_container( DI_Container $container ): void;

These should be removed as just using the _container_aware_traits and matching interfaces should be enough to populate these.