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->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'); } ); })();