setup(); } $proxy = new ProxyContainer(); $provider = new CompositeCachingServiceProvider( $providers ); $container = new CachingContainer( new DelegatingContainer( $provider ) ); $proxy->setInnerContainer( $container ); foreach ( $modules as $module ) { /* @var $module ModuleInterface module */ $module->run( $container ); } $initialized = true; } } add_action( 'plugins_loaded', function () { init(); } ); register_activation_hook( __FILE__, function () { init(); do_action( 'woocommerce_paypal_commerce_gateway_activate' ); } ); register_deactivation_hook( __FILE__, function () { init(); do_action( 'woocommerce_paypal_commerce_gateway_deactivate' ); } ); } )();