modules/acm/src/User/CommerceAccountProxyFactory.php
public static function get(ContainerInterface $container) {
    $use_ecomm_sessions = $container
      ->get('config.factory')
      ->get('acm.commerce_users')
      ->get('use_ecomm_sessions');

    if ($use_ecomm_sessions) {
      return $container->get('acm.external_commerce_account_proxy');
    }

    return $container->get('acm.commerce_account_proxy');
  }
public static function get(ContainerInterface $container) {
    $use_ecomm_sessions = $container
      ->get('config.factory')
      ->get('acm.commerce_users')
      ->get('use_ecomm_sessions');

    if ($use_ecomm_sessions) {
      return $container->get('acm.external_commerce_account_proxy');
    }

    return $container->get('acm.commerce_account_proxy');
  }
public static function get ( ContainerInterface $ container ) { $ use_ecomm_sessions = $ container -> get ( 'config.factory' ) -> get ( 'acm.commerce_users' ) -> get ( 'use_ecomm_sessions' ) ; if ( $ use_ecomm_sessions ) { return $ container -> get ( 'acm.external_commerce_account_proxy' ) ; } return $ container -> get ( 'acm.commerce_account_proxy' ) ; }
Creates an AccountProxyInterface object.

@param \Symfony\Component\DependencyInjection\ContainerInterface $container
The current service container.

@return \Drupal\Core\Session\AccountProxyInterface
An account proxy object.
Creates an AccountProxyInterface object .