[Flow] Using Chinese characters as Identity for Object Route Parts

Christian Loock chl at vkf-renzel.de
Tue Oct 21 09:44:27 CEST 2014


So, basically when I run into similar issues there are 3 ways you can 
tackle those problems.

1. Extend the class that has the problems, fix the issues in you 
implementation and change the object configuration in Objects.yaml to 
use your class instead.
2. Use AOP with an aspect that wrappes arround the bugged method to fix 
it. However, this can be hard to debug later on, since ppl might not 
know where the logic of the method is modified.
3. Use an own fork of flow where you fix your issue in the flow 
framework. Create a pull request so the fix gets merged into flow. Use 
standard flow lib, once your pull request has been merged.

In any case, when it is a bug, you should add a ticket to jira and if 
you want a fix can be pushed to gerrit.

Am 21.10.2014 um 09:38 schrieb Rocky:
> The Routes.yaml file has below configuration:
> -  name: 'DashboardSchool'  uriPattern: 'dashboard/school/{school}' 
>  defaults:      '@package': 'Hwwcn.Sponsor'      '@controller': 
> 'Dashboard'      '@action': 'school'      '@format': 'html' 
>  routeParts:      school: objectType: 
> '\Hwwcn\Sponsor\Domain\Model\School' uriPattern: '{name}'
>
> If I edit 
> TYPO3.Flow/Classes/TYPO3/Flow/Mvc/Routing/IdentityRoutePart.php as 
> below, it works.
>    1. At line 271  $pathSegment .= 
> $this->rewriteForUri($dynamicPathSegment); becomes $pathSegment .= 
> $dynamicPathSegment;
>    2. Before line 148 insert $pathSegment = urldecode($pathSegment);
> Edit TYPO3.Flow package code is not good. What are the other options I 
> have please?
>
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list