mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Do action on container built and app initialized
This commit is contained in:
parent
475309dd4f
commit
60c3687a14
1 changed files with 1 additions and 2 deletions
|
@ -89,14 +89,13 @@ define( 'PPCP_FLAG_SUBSCRIPTION', true );
|
|||
$proxy = new ProxyContainer();
|
||||
$provider = new CompositeCachingServiceProvider( $providers );
|
||||
$container = new CachingContainer( new DelegatingContainer( $provider ) );
|
||||
$container = apply_filters( 'woocommerce_paypal_payments_built_container', $container );
|
||||
$proxy->setInnerContainer( $container );
|
||||
foreach ( $modules as $module ) {
|
||||
/* @var $module ModuleInterface module */
|
||||
$module->run( $container );
|
||||
}
|
||||
$initialized = true;
|
||||
|
||||
do_action( 'woocommerce_paypal_payments_built_container', $proxy );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue