mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Update dhii/module-interface
to version 0.3
This commit is contained in:
parent
090e829f75
commit
119543ae2d
12 changed files with 12 additions and 12 deletions
|
@ -36,7 +36,7 @@ class AdminNotices implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
add_action(
|
||||
'admin_notices',
|
||||
function() use ( $container ) {
|
||||
|
|
|
@ -37,7 +37,7 @@ class ApiModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -43,7 +43,7 @@ class ButtonModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface|null $container The Container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
|
||||
add_action(
|
||||
'wp',
|
||||
|
|
|
@ -40,7 +40,7 @@ class OnboardingModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface|null $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
|
||||
$asset_loader = $container->get( 'onboarding.assets' );
|
||||
/**
|
||||
|
|
|
@ -37,7 +37,7 @@ class SessionModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface|null $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
add_action(
|
||||
'woocommerce_init',
|
||||
function () use ( $container ) {
|
||||
|
|
|
@ -44,7 +44,7 @@ class SubscriptionModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface|null $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
add_action(
|
||||
'woocommerce_scheduled_subscription_payment_' . PayPalGateway::ID,
|
||||
function ( $amount, $order ) use ( $container ) {
|
||||
|
|
|
@ -53,7 +53,7 @@ class WcGatewayModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface|null $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
$this->register_payment_gateways( $container );
|
||||
$this->register_order_functionality( $container );
|
||||
$this->register_columns( $container );
|
||||
|
|
|
@ -36,7 +36,7 @@ class WebhookModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface|null $container The Container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
add_action(
|
||||
'rest_api_init',
|
||||
static function () use ( $container ) {
|
||||
|
|
|
@ -36,7 +36,7 @@ class WooCommerceLoggingModule implements ModuleInterface {
|
|||
*
|
||||
* @param ContainerInterface $container The container.
|
||||
*/
|
||||
public function run( ContainerInterface $container ) {
|
||||
public function run( ContainerInterface $container ): void {
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue