src/Maba/OAuthCommerceAccountsClient/DependencyInjection/AccountsClientExtension.php
public function load(array $config, ContainerBuilder $container)
    {
        $container->setParameter('maba_oauth_commerce.accounts_client.default_base_url', null);

        $container
            ->setDefinition(
                'maba_oauth_commerce.factory.accounts',
                new DefinitionDecorator('maba_oauth_commerce.factory.base')
            )
            ->addMethodCall('setDefaultBaseUrl', array('%maba_oauth_commerce.accounts_client.default_base_url%'))
            ->setClass('Maba\OAuthCommerceAccountsClient\AccountsClientFactory')
        ;

        $container->register(
            'maba_oauth_commerce.factory.accounts_api',
            'Maba\OAuthCommerceAccountsClient\AccountsApiFactory'
        )->setArguments(array(
            new Reference('maba_oauth_commerce.factory.auth'),
            new Reference('maba_oauth_commerce.factory.accounts'),
            new Reference('maba_oauth_commerce.algorithm_manager'),
            new Definition('Maba\OAuthCommerceClient\Random\DefaultRandomProvider'),
        ));
    }
public function load(array $config, ContainerBuilder $container)
    {
        $container->setParameter('maba_oauth_commerce.accounts_client.default_base_url', null);

        $container
            ->setDefinition(
                'maba_oauth_commerce.factory.accounts',
                new DefinitionDecorator('maba_oauth_commerce.factory.base')
            )
            ->addMethodCall('setDefaultBaseUrl', array('%maba_oauth_commerce.accounts_client.default_base_url%'))
            ->setClass('Maba\OAuthCommerceAccountsClient\AccountsClientFactory')
        ;

        $container->register(
            'maba_oauth_commerce.factory.accounts_api',
            'Maba\OAuthCommerceAccountsClient\AccountsApiFactory'
        )->setArguments(array(
            new Reference('maba_oauth_commerce.factory.auth'),
            new Reference('maba_oauth_commerce.factory.accounts'),
            new Reference('maba_oauth_commerce.algorithm_manager'),
            new Definition('Maba\OAuthCommerceClient\Random\DefaultRandomProvider'),
        ));
    }
public function load ( array $ config , ContainerBuilder $ container ) { $ container -> setParameter ( 'maba_oauth_commerce.accounts_client.default_base_url' , null ) ; $ container -> setDefinition ( 'maba_oauth_commerce.factory.accounts' , new DefinitionDecorator ( 'maba_oauth_commerce.factory.base' ) ) -> addMethodCall ( 'setDefaultBaseUrl' , array ( '%maba_oauth_commerce.accounts_client.default_base_url%' ) ) -> setClass ( 'Maba\OAuthCommerceAccountsClient\AccountsClientFactory' ) ; $ container -> register ( 'maba_oauth_commerce.factory.accounts_api' , 'Maba\OAuthCommerceAccountsClient\AccountsApiFactory' ) -> setArguments ( array ( new Reference ( 'maba_oauth_commerce.factory.auth' ) , new Reference ( 'maba_oauth_commerce.factory.accounts' ) , new Reference ( 'maba_oauth_commerce.algorithm_manager' ) , new Definition ( 'Maba\OAuthCommerceClient\Random\DefaultRandomProvider' ) , ) ) ; }
Loads a specific configuration.

@param array            $config    An array of configuration values
@param ContainerBuilder $container A ContainerBuilder instance

@throws InvalidArgumentException When provided tag is not defined in this extension
@api
Loads a specific configuration .