Automattic\WooCommerce\Internal\DependencyManagement
Definition::invokeInit()
Invoke the 'init' method on a resolved object.
Constructor injection causes backwards compatibility problems so we will rely on method injection via an internal method.
Method of the class: Definition{}
No Hooks.
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->invokeInit( $instance );
- $instance(object) (required)
- The resolved object.
Definition::invokeInit() Definition::invokeInit code WC 9.3.1
private function invokeInit( $instance ) { $resolved = $this->resolveArguments( $this->arguments ); if ( method_exists( $instance, static::INJECTION_METHOD ) ) { call_user_func_array( array( $instance, static::INJECTION_METHOD ), $resolved ); } }