[Neos] Routing Problem

Carsten Bleicker carsten at bleicker.de
Thu Oct 30 16:00:58 CET 2014


help please with this:

for this i need a route:
$this->uriBuilder->setCreateAbsoluteUri(TRUE)->uriFor('paymentError', array('paymentType' => array('__type' => $paymentType->getType()), 'document' => $document->getIdentity(), 'hash' => $document->getIdentityHash())))

$paymentType->getType() returns a FQN ClassName f.e. PIPEU\Payment\Domain\Model\Visa

routing should be able to handle this as and restore the :
http://development.pipeu.local/de/dokumente/onepay/visa/3112c063-35c8-4d96-bf07-251bbfa95f66/5e6bb1fb77260602e060454b00554f65%2c2a92aa/success.html



but my current routing does not match because i dont know how to handle the __type  argument:
-
  name: 'Payment Error'
  uriPattern: '{node}/onepay/{--pipeu_factura_nodetypes-document.paymentType}/{--pipeu_factura_nodetypes-document.document}/{--pipeu_factura_nodetypes-document.hash}/error.{@format}'
  defaults:
    '@package': 'TYPO3.Neos'
    '@controller': 'Frontend\Node'
    '@format': 'html'
    '@action': 'show'
    '--pipeu_factura_nodetypes-document':
      '@package': 'PIPEU.Factura.NodeTypes'
      '@controller': 'Payment'
      '@action': 'paymentError'
      '@format': 'html'
  routeParts:
    node:
      handler: TYPO3\Neos\Routing\FrontendNodeRoutePartHandlerInterface
    '--pipeu_factura_nodetypes-document.document':
      objectType: 'PIPEU\Factura\Domain\Abstracts\AbstractDocument'
    '--pipeu_factura_nodetypes-document.paymentType':
        objectType: 'PIPEU\Payment\Domain\Model\Visa'
  appendExceedingArguments: true



----------------------

Carsten Bleicker
Wülfingstraße 1
42477 Radevormwald

E-Mail:	carsten at bleicker.de
Web:	www.bleicker.de
Twitter:	@carstenbleicker
Jabber:	cbleicker at jabber.ccc.de
Telefon:	+49 (0)171-2690845



More information about the Neos mailing list