mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
downgrade plugin to php 7.0
This commit is contained in:
parent
5e011b4f95
commit
c5899d915c
61 changed files with 419 additions and 368 deletions
|
@ -18,7 +18,7 @@ use Psr\Container\ContainerInterface;
|
|||
|
||||
return array(
|
||||
|
||||
'webhook.registrar' => function( ContainerInterface $container ) : WebhookRegistrar {
|
||||
'webhook.registrar' => function( $container ) : WebhookRegistrar {
|
||||
$factory = $container->get( 'api.factory.webhook' );
|
||||
$endpoint = $container->get( 'api.endpoint.webhook' );
|
||||
$rest_endpoint = $container->get( 'webhook.endpoint.controller' );
|
||||
|
@ -28,7 +28,7 @@ return array(
|
|||
$rest_endpoint
|
||||
);
|
||||
},
|
||||
'webhook.endpoint.controller' => function( ContainerInterface $container ) : IncomingWebhookEndpoint {
|
||||
'webhook.endpoint.controller' => function( $container ) : IncomingWebhookEndpoint {
|
||||
$webhook_endpoint = $container->get( 'api.endpoint.webhook' );
|
||||
$webhook_factory = $container->get( 'api.factory.webhook' );
|
||||
$handler = $container->get( 'webhook.endpoint.handler' );
|
||||
|
@ -43,7 +43,7 @@ return array(
|
|||
... $handler
|
||||
);
|
||||
},
|
||||
'webhook.endpoint.handler' => function( ContainerInterface $container ) : array {
|
||||
'webhook.endpoint.handler' => function( $container ) : array {
|
||||
$logger = $container->get( 'woocommerce.logger.woocommerce' );
|
||||
$prefix = $container->get( 'api.prefix' );
|
||||
$order_endpoint = $container->get( 'api.endpoint.order' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue