[Flow] Merge

toco at aimeos.org toco at aimeos.org
Fri Apr 3 20:54:07 CEST 2015


Hi Bastian

>> For us and everybody using JsonRPC with Flow
>> https://jira.typo3.org/browse/FLOW-209 is also very crucial
> 
> Then good news for you: The other change has just been merged and I 
> think your JsonRPC issue can be resolved easily (see my comment on the 
> ticket).

I've tried your suggestion and implemented an AimeosTypeConverter class:


namespace Aimeos\Flow;

use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Property\TypeConverter\MediaTypeConverter;
use TYPO3\Flow\Property\TypeConverter\MediaTypeConverterInterface;
use TYPO3\Flow\Property\PropertyMappingConfigurationInterface;

class AimeosTypeConverter extends MediaTypeConverter implements MediaTypeConverterInterface
{
	public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = NULL)
	{
		$result = array();

		parse_str($source, $result);

		return $result;
	}
}


And in Configuration/Objects.yaml:

Typo3\Flow\Property\TypeConverter\MediaTypeConverterInterface:
  className: 'Aimeos\Flow\AimeosTypeConverter'


Now I get the following exception when executing ./flow :

  Uncaught Exception: TYPO3\Flow\Object\Exception\UnknownObjectException
  
  Message
    The object
    "TYPO3\Flow\Property\TypeConverter\MediaTypeConverterInterface" which was
    specified as a property in the object configuration of object
    "TYPO3\Fluid\Core\Widget\AjaxWidgetComponent" (automatically registered
    class) does not exist. Check for spelling mistakes and if that dependency
    is correctly configured.


What can cause this?


Toco

--
Aimeos web shop package

http://aimeos.org
https://www.facebook.com/Aimeos
Twitter: @aimeos



More information about the Flow mailing list