mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
24 lines
834 B
PHP
24 lines
834 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module;
|
|
|
|
interface ExtendingModule extends Module
|
|
{
|
|
|
|
/**
|
|
* Return application services' extensions.
|
|
*
|
|
* Array keys will be services' IDs in the container, array values are callback that
|
|
* accepts as parameters the original service and a PSR-11 container and return an instance of
|
|
* the extended service.
|
|
*
|
|
* It is possible to explicitly extend extensions made by other modules.
|
|
* That is done by using as ID (array key in the `extensions` method) the target module ID
|
|
* and the service ID.
|
|
*
|
|
* @return array<string, callable(mixed $service, \WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface $container):mixed>
|
|
*/
|
|
public function extensions(): array;
|
|
}
|