Do action on container built and app initialized

This commit is contained in:
Kirill Braslavsky 2021-08-11 10:33:42 +03:00
parent 475309dd4f
commit 60c3687a14
No known key found for this signature in database
GPG key ID: 61737D0C41BF3E75

View file

@ -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 );
}
}