REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.20 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/woocommerce-paypal-payments/bootstrap.php
Text
Base64
<?php /** * Bootstraps the modular app. * * @package WooCommerce\PayPalCommerce */ use WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer; use WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CompositeCachingServiceProvider; use WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CompositeContainer; use WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer; use WooCommerce\PayPalCommerce\Vendor\Dhii\Container\ProxyContainer; use WooCommerce\PayPalCommerce\Vendor\Dhii\Modular\Module\ModuleInterface; use WooCommerce\PayPalCommerce\Vendor\Interop\Container\ServiceProviderInterface; use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface; return function ( string $root_dir, array $additional_containers = array(), array $additional_modules = array() ): ContainerInterface { /** * Skip path check. * * @psalm-suppress UnresolvableInclude */ $modules = ( require "$root_dir/modules.php" )( $root_dir ); $modules = array_merge( $modules, $additional_modules ); /** * Use this filter to add custom module or remove some of existing ones. * Modules able to access container, add services and modify existing ones. */ $modules = apply_filters( 'woocommerce_paypal_payments_modules', $modules ); $providers = array_map( function ( ModuleInterface $module ): ServiceProviderInterface { return $module->setup(); }, $modules ); $provider = new CompositeCachingServiceProvider( $providers ); $proxy_container = new ProxyContainer(); // TODO: caching does not work currently, // may want to consider fixing it later (pass proxy as parent to DelegatingContainer) // for now not fixed since we were using this behavior for long time and fixing it now may break things. $container = new DelegatingContainer( $provider ); /** * Skip iterable vs array check. * * @psalm-suppress PossiblyInvalidArgument */ $app_container = new CachingContainer( new CompositeContainer( array_merge( $additional_containers, array( $container ) ) ) ); $proxy_container->setInnerContainer( $app_container ); foreach ( $modules as $module ) { /* @var $module ModuleInterface module */ $module->run( $app_container ); } return $app_container; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 5 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
api
DIR
-
drwxr-xr-x
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lib
DIR
-
drwxr-xr-x
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
modules
DIR
-
drwxr-xr-x
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
src
DIR
-
drwxr-xr-x
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
vendor
DIR
-
drwxr-xr-x
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bootstrap.php
2.20 KB
lrw-r--r--
2023-04-04 05:36:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
changelog.txt
23.66 KB
lrw-r--r--
2023-04-04 05:36:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
17.33 KB
lrw-r--r--
2023-04-04 05:36:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
modules.php
1.08 KB
lrw-r--r--
2023-04-04 05:36:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package-lock.json
64.15 KB
lrw-r--r--
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.txt
27.27 KB
lrw-r--r--
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
uninstall.php
2.05 KB
lrw-r--r--
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
woocommerce-paypal-payments.php
6.89 KB
lrw-r--r--
2023-04-04 05:36:17
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).