downgrade dhii/module-interface to 0.1

This commit is contained in:
David Remer 2020-09-16 10:18:45 +03:00
parent c09e314baa
commit ddd4f5ba09
11 changed files with 102 additions and 21 deletions

View file

@ -49,9 +49,9 @@ class WcGatewayModule implements ModuleInterface {
/**
* Runs the module.
*
* @param ContainerInterface $container The container.
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container = null ) {
$this->register_payment_gateways( $container );
$this->register_order_functionality( $container );
$this->register_columns( $container );
@ -164,9 +164,9 @@ class WcGatewayModule implements ModuleInterface {
/**
* Registers the payment gateways.
*
* @param ContainerInterface $container The container.
* @param ContainerInterface|null $container The container.
*/
private function register_payment_gateways( ContainerInterface $container ) {
private function register_payment_gateways( ContainerInterface $container = null ) {
add_filter(
'woocommerce_payment_gateways',
@ -356,4 +356,13 @@ class WcGatewayModule implements ModuleInterface {
2
);
}
/**
* Returns the key for the module.
*
* @return string|void
*/
public function getKey() {
}
}