2020-08-27 12:31:16 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The logging module.
|
|
|
|
*
|
2020-09-11 14:11:10 +03:00
|
|
|
* @package WooCommerce\WooCommerce\Logging
|
2020-08-27 12:31:16 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-09-11 14:11:10 +03:00
|
|
|
namespace WooCommerce\WooCommerce\Logging;
|
2020-08-27 12:31:16 +03:00
|
|
|
|
|
|
|
use Dhii\Container\ServiceProvider;
|
|
|
|
use Dhii\Modular\Module\ModuleInterface;
|
|
|
|
use Interop\Container\ServiceProviderInterface;
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
|
|
|
|
/**
|
2020-09-03 07:05:50 +03:00
|
|
|
* Class WooCommerceLoggingModule
|
2020-08-27 12:31:16 +03:00
|
|
|
*/
|
2020-09-03 07:05:50 +03:00
|
|
|
class WooCommerceLoggingModule implements ModuleInterface {
|
2020-08-27 12:31:16 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Setup the module.
|
|
|
|
*
|
|
|
|
* @return ServiceProviderInterface
|
|
|
|
*/
|
|
|
|
public function setup(): ServiceProviderInterface {
|
|
|
|
return new ServiceProvider(
|
|
|
|
require __DIR__ . '/../services.php',
|
|
|
|
require __DIR__ . '/../extensions.php'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Run the module.
|
|
|
|
*
|
|
|
|
* @param ContainerInterface $container The container.
|
|
|
|
*/
|
2021-07-14 14:58:23 +02:00
|
|
|
public function run( ContainerInterface $container ): void {
|
2020-09-16 10:18:45 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the key for the module.
|
|
|
|
*
|
|
|
|
* @return string|void
|
|
|
|
*/
|
|
|
|
public function getKey() {
|
2020-08-27 12:31:16 +03:00
|
|
|
}
|
|
|
|
}
|