[Flow] Fatal error when calling UriBuilder->uriFor()

toco at aimeos.org toco at aimeos.org
Fri Feb 20 15:34:23 CET 2015


Hi all

I'M getting a fatal error in my model when trying to create an URL:

$uriBuilder = $this->objectManager->get('\\TYPO3\\Flow\\Mvc\\Routing\\UriBuilder');
$uriBuilder->uriFor('catalogList', $params, 'page', null, null);

Leads to:

PHP Fatal error: Call to a member function getControllerSubpackageKey() on a
non-object in
/Aimeos/src/flow/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Mvc_Routing_UriBuilder.php
on line 301

Seems like the Request object isn't available. Isn't that injected automatically?

Thanks for any help


Toco



More information about the Flow mailing list