PluginProbe ʕ •ᴥ•ʔ
WooCommerce PayPal Payments / 4.0.4
WooCommerce PayPal Payments v4.0.4
4.0.4 4.0.3 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.4.0 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.7.0 1.7.1 1.8.0 1.8.1 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.4.0 2.4.1 2.4.2 2.4.3 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.6.0 2.6.1 2.7.0 2.7.1 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 4.0.0 4.0.1 4.0.2
woocommerce-paypal-payments / bootstrap.php
woocommerce-paypal-payments Last commit date
api 2 months ago assets 2 weeks ago lib 2 months ago modules 2 weeks ago src 2 weeks ago vendor 2 weeks ago LICENSE 5 years ago bootstrap.php 9 months ago changelog.txt 2 weeks ago modules.php 2 weeks ago readme.txt 2 weeks ago uninstall.php 2 weeks ago woocommerce-paypal-payments.php 2 weeks ago
bootstrap.php
35 lines
1 <?php
2
3 /**
4 * Bootstraps the modular app.
5 *
6 * @package WooCommerce\PayPalCommerce
7 */
8 namespace WooCommerce\PayPalCommerce;
9
10 use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Package;
11 use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Properties\PluginProperties;
12 use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
13 return function (string $root_dir, array $additional_containers = array(), array $additional_modules = array()): ContainerInterface {
14 /**
15 * Skip path check.
16 *
17 * @psalm-suppress UnresolvableInclude
18 */
19 $modules = (require "{$root_dir}/modules.php")($root_dir);
20 $modules = array_merge($modules, $additional_modules);
21 /**
22 * Use this filter to add custom module or remove some of existing ones.
23 * Modules able to access container, add services and modify existing ones.
24 */
25 $modules = apply_filters('woocommerce_paypal_payments_modules', $modules);
26 // Initialize plugin.
27 $properties = PluginProperties::new("{$root_dir}/woocommerce-paypal-payments.php");
28 $bootstrap = Package::new($properties);
29 foreach ($modules as $module) {
30 $bootstrap->addModule($module);
31 }
32 $bootstrap->boot();
33 return $bootstrap->container();
34 };
35