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

@ -35,9 +35,9 @@ class SessionModule implements ModuleInterface {
/**
* Run the module.
*
* @param ContainerInterface $container The container.
* @param ContainerInterface|null $container The container.
*/
public function run( ContainerInterface $container ) {
public function run( ContainerInterface $container = null ) {
add_action(
'woocommerce_init',
function () use ( $container ) {
@ -51,4 +51,12 @@ class SessionModule implements ModuleInterface {
}
);
}
/**
* Returns the key for the module.
*
* @return string|void
*/
public function getKey() {
}
}