Run module only if elegible

This commit is contained in:
Emili Castells Guasch 2023-10-19 11:18:01 +02:00
parent 58781e5ada
commit 50aec0b1b3
3 changed files with 102 additions and 2 deletions

View file

@ -32,5 +32,9 @@ class SavePaymentMethodsModule implements ModuleInterface {
/**
* {@inheritDoc}
*/
public function run( ContainerInterface $c ): void {}
public function run( ContainerInterface $c ): void {
if ( ! $c->get( 'save-payment-methods.eligible' ) ) {
return;
}
}
}