mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
downgrade dhii/module-interface to 0.1
This commit is contained in:
parent
c09e314baa
commit
ddd4f5ba09
11 changed files with 102 additions and 21 deletions
|
@ -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() {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue