Now using modularity standard v0.3

This is the newest release, and is the first one that is compatible
with PHP 8. Other changes are BC-breaking, but very very minor.
This commit is contained in:
Anton Ukhanev 2021-02-18 09:46:26 +01:00
parent cabcb7d9e4
commit 69d9631a73
19 changed files with 29 additions and 67 deletions

View file

@ -28,9 +28,7 @@ use WooCommerce\PayPalCommerce\WcGateway\Exception\NotFoundException;
class SubscriptionModule implements ModuleInterface {
/**
* Setup the module.
*
* @return ServiceProviderInterface
* {@inheritDoc}
*/
public function setup(): ServiceProviderInterface {
return new ServiceProvider(
@ -40,9 +38,7 @@ class SubscriptionModule implements ModuleInterface {
}
/**
* Runs the module.
*
* @param ContainerInterface|null $container The container.
* {@inheritDoc}
*/
public function run( ContainerInterface $container ): void {
add_action(