woocommerce-paypal-payments/src/PluginModule.php

45 lines
1,020 B
PHP
Raw Normal View History

2020-04-02 08:38:00 +03:00
<?php
2020-08-31 13:08:27 +03:00
/**
* The plugin module.
*
2020-09-11 14:11:10 +03:00
* @package WooCommerce\PayPalCommerce
2020-08-31 13:08:27 +03:00
*/
2020-04-28 15:08:27 +03:00
2020-04-02 08:38:00 +03:00
declare(strict_types=1);
2020-09-11 14:11:10 +03:00
namespace WooCommerce\PayPalCommerce;
2020-04-02 08:38:00 +03:00
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module\ExecutableModule;
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module\ExtendingModule;
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module\ModuleClassNameIdTrait;
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module\ServiceModule;
use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface;
2020-04-02 08:38:00 +03:00
2020-08-31 13:08:27 +03:00
/**
* Class PluginModule
*/
class PluginModule implements ServiceModule, ExtendingModule, ExecutableModule {
use ModuleClassNameIdTrait;
2020-04-02 08:38:00 +03:00
2020-08-31 13:08:27 +03:00
/**
2021-08-30 08:08:41 +02:00
* {@inheritDoc}
2020-08-31 13:08:27 +03:00
*/
public function services(): array {
return require __DIR__ . '/services.php';
2020-08-27 11:08:36 +03:00
}
2020-08-31 13:08:27 +03:00
/**
2021-08-30 08:08:41 +02:00
* {@inheritDoc}
2020-08-31 13:08:27 +03:00
*/
public function extensions(): array {
return require __DIR__ . '/extensions.php';
2020-09-16 10:18:45 +03:00
}
/**
* {@inheritDoc}
2020-09-16 10:18:45 +03:00
*/
public function run( ContainerInterface $c ): bool {
return true;
2020-08-27 11:08:36 +03:00
}
2020-04-06 11:16:18 +03:00
}