mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
♻️ Apply more suitable DI service name
This commit is contained in:
parent
cad5378089
commit
d4857102fe
9 changed files with 25 additions and 25 deletions
|
@ -41,7 +41,7 @@ return array(
|
|||
'axo.helpers.compatibility-checker' => static function ( ContainerInterface $container ) : CompatibilityChecker {
|
||||
return new CompatibilityChecker(
|
||||
$container->get( 'axo.fastlane-incompatible-plugin-names' ),
|
||||
$container->get( 'wcgateway.configuration.dcc' )
|
||||
$container->get( 'wcgateway.configuration.card-configuration' )
|
||||
);
|
||||
},
|
||||
|
||||
|
@ -83,7 +83,7 @@ return array(
|
|||
return new AxoGateway(
|
||||
$container->get( 'wcgateway.settings.render' ),
|
||||
$container->get( 'wcgateway.settings' ),
|
||||
$container->get( 'wcgateway.configuration.dcc' ),
|
||||
$container->get( 'wcgateway.configuration.card-configuration' ),
|
||||
$container->get( 'wcgateway.url' ),
|
||||
$container->get( 'session.handler' ),
|
||||
$container->get( 'wcgateway.order-processor' ),
|
||||
|
@ -228,7 +228,7 @@ return array(
|
|||
},
|
||||
|
||||
'axo.smart-button-location-notice' => static function ( ContainerInterface $container ) : string {
|
||||
$dcc_configuration = $container->get( 'wcgateway.configuration.dcc' );
|
||||
$dcc_configuration = $container->get( 'wcgateway.configuration.card-configuration' );
|
||||
assert( $dcc_configuration instanceof DCCGatewayConfiguration );
|
||||
|
||||
if ( $dcc_configuration->use_fastlane() ) {
|
||||
|
|
|
@ -98,7 +98,7 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
return $methods;
|
||||
}
|
||||
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.dcc' );
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.card-configuration' );
|
||||
assert( $dcc_configuration instanceof DCCGatewayConfiguration );
|
||||
|
||||
if ( ! $dcc_configuration->is_enabled() ) {
|
||||
|
@ -164,7 +164,7 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
$listener = $c->get( 'wcgateway.settings.listener' );
|
||||
assert( $listener instanceof SettingsListener );
|
||||
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.dcc' );
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.card-configuration' );
|
||||
assert( $dcc_configuration instanceof DCCGatewayConfiguration );
|
||||
|
||||
$listener->filter_settings(
|
||||
|
@ -247,7 +247,7 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
add_filter(
|
||||
'woocommerce_paypal_payments_sdk_components_hook',
|
||||
function( $components ) use ( $c ) {
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.dcc' );
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.card-configuration' );
|
||||
assert( $dcc_configuration instanceof DCCGatewayConfiguration );
|
||||
|
||||
if ( ! $dcc_configuration->use_fastlane() ) {
|
||||
|
@ -262,7 +262,7 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
'wp_head',
|
||||
function () use ( $c ) {
|
||||
// Add meta tag to allow feature-detection of the site's AXO payment state.
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.dcc' );
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.card-configuration' );
|
||||
assert( $dcc_configuration instanceof DCCGatewayConfiguration );
|
||||
|
||||
if ( $dcc_configuration->use_fastlane() ) {
|
||||
|
@ -403,7 +403,7 @@ class AxoModule implements ServiceModule, ExtendingModule, ExecutableModule {
|
|||
* @return bool
|
||||
*/
|
||||
private function should_render_fastlane( ContainerInterface $c ): bool {
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.dcc' );
|
||||
$dcc_configuration = $c->get( 'wcgateway.configuration.card-configuration' );
|
||||
assert( $dcc_configuration instanceof DCCGatewayConfiguration );
|
||||
|
||||
$subscription_helper = $c->get( 'wc-subscriptions.helper' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue