For those interested... the PR is here:
https://github.com/zendframework/zf2/pull/4630
On Mon, Jun 10, 2013 at 11:02 AM, Matthew Weier O'Phinney
wrote:
> On Sun, Jun 2, 2013 at 5:01 PM, Ben Scholzen 'DASPRiD'
> wrote:
>> The problem here is that the normal TreeRouteStack is hard-coded into
>> the MVC RouterFactory. It'd likely make sense to make that part
>> configurable.
>>
>> @Matthew: Any idea on how to implement that in a sane way?
>
> Make it an option in the router config:
>
> return array('router' => array(
> 'class' => 'Zend\Mvc\Router\Http\TranslatableTreeStack', //
> whatever... I can't remember the name
> // other config options here, including "routes"
> ));
>
> We can then check for that in Zend\Mvc\Service\RouterFactory, and, if
> specified, use that class instead.
>
>> On 02.06.2013 23:52, Ben Scholzen wrote:
>>> Forwarding to ML.
>>>
>>> Original Message
>>> Betreff: About Translatable segments
>>> Datum:Sun, 2 Jun 2013 19:01:46 +
>>> Von: Juan Pedro Gonzalez
>>> An: m...@dasprids.de
>>>
>>>
>>>
>>> Hi Ben,
>>>
>>> I've been trying to make use of your work with translateble segments but
>>> keep getting the error:
>>>
>>> *Fatal error*: Call to undefined method
>>> Zend\Mvc\Router\Http\TreeRouteStack::setTranslator()
>>>
>>> I guess I'm not using
>>> the Zend\Mvc\Router\Http\TranslatorAwareTreeRouteStack. How would you
>>> set it up?
>>>
>>> Thankyou in advance
>>>
>>>
>>>
>>
>>
>> --
>> Ben Scholzen 'DASPRiD'
>> Community Review Team Member | m...@dasprids.de
>> Zend Framework | http://www.dasprids.de
>>
>> --
>> List: fw-general@lists.zend.com
>> Info: http://framework.zend.com/archives
>> Unsubscribe: fw-general-unsubscr...@lists.zend.com
>>
>>
>
>
>
> --
> Matthew Weier O'Phinney
> Project Lead| matt...@zend.com
> Zend Framework | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
--
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com