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
<[email protected]> wrote:
> On Sun, Jun 2, 2013 at 5:01 PM, Ben Scholzen 'DASPRiD' <[email protected]> 
> 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 +0000
>>> Von:  Juan Pedro Gonzalez <[email protected]>
>>> An:   [email protected] <[email protected]>
>>>
>>>
>>>
>>> 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 | [email protected]
>> Zend Framework               | http://www.dasprids.de
>>
>> --
>> List: [email protected]
>> Info: http://framework.zend.com/archives
>> Unsubscribe: [email protected]
>>
>>
>
>
>
> --
> Matthew Weier O'Phinney
> Project Lead            | [email protected]
> Zend Framework          | http://framework.zend.com/
> PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc



-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to