Bridge/Symfony/BasePaymentFactory.php
protected function addActions(Definition $paymentDefinition, ContainerBuilder $container, $contextName, array $config)
    {
		if ( isset($config['sandbox']) && $config['sandbox'] != false )
		{
	        $loggerDefinition = new Definition();
	        $loggerDefinition->setClass('Eki\Payum\Nganluong\Action\LoggerAwareAction');
			$loggerDefinition->addMethodCall(
				'setLogger',
				array(new Reference('logger'))
			);
			$loggerActionId = 'payum.'.$contextName.'.nganluong.action.logger_aware';
	        $container->setDefinition($loggerActionId, $loggerDefinition);

            $paymentDefinition->addMethodCall(
                'addAction',
                array(new Reference($loggerActionId), $forcePrepend = true)
            );
		}
    }
protected function addActions(Definition $paymentDefinition, ContainerBuilder $container, $contextName, array $config)
    {
		if ( isset($config['sandbox']) && $config['sandbox'] != false )
		{
	        $loggerDefinition = new Definition();
	        $loggerDefinition->setClass('Eki\Payum\Nganluong\Action\LoggerAwareAction');
			$loggerDefinition->addMethodCall(
				'setLogger',
				array(new Reference('logger'))
			);
			$loggerActionId = 'payum.'.$contextName.'.nganluong.action.logger_aware';
	        $container->setDefinition($loggerActionId, $loggerDefinition);

            $paymentDefinition->addMethodCall(
                'addAction',
                array(new Reference($loggerActionId), $forcePrepend = true)
            );
		}
    }
{@inheritDoc}