Bridge/Sylius/GetPaymentMethodAction.php
public function execute($request)
    {
        if (!$this->supports($request)) {
            throw RequestNotSupportedException::createActionNotSupported($this, $request);
        }

        /** @var $payment PaymentInterface */
        $payment = $request->getModel();

		$info = array();
		$info['payment_type'] = self::DEFAULT_PAYMENT_TYPE;
		$info['payment_method'] = $this->getMethodCode(strtolower($payment->getMethod()->getName()));
		
		$request->setInfo($info);
    }
public function execute($request)
    {
        if (!$this->supports($request)) {
            throw RequestNotSupportedException::createActionNotSupported($this, $request);
        }

        /** @var $payment PaymentInterface */
        $payment = $request->getModel();

		$info = array();
		$info['payment_type'] = self::DEFAULT_PAYMENT_TYPE;
		$info['payment_method'] = $this->getMethodCode(strtolower($payment->getMethod()->getName()));
		
		$request->setInfo($info);
    }
public function execute ( $ request ) { if ( ! $ this -> supports ( $ request ) ) { throw RequestNotSupportedException :: createActionNotSupported ( $ this , $ request ) ; } /** @var $payment PaymentInterface */ $ payment = $ request -> getModel ( ) ; $ info = array ( ) ; $ info [ 'payment_type' ] = self :: DEFAULT_PAYMENT_TYPE ; $ info [ 'payment_method' ] = $ this -> getMethodCode ( strtolower ( $ payment -> getMethod ( ) -> getName ( ) ) ) ; $ request -> setInfo ( $ info ) ; }
{@inheritDoc}

@param $request GetPaymentMethod
{ @inheritDoc }