Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

ZF 2.3 Segment route translator #5965

Closed
abstractionnl opened this issue Mar 13, 2014 · 0 comments
Closed

ZF 2.3 Segment route translator #5965

abstractionnl opened this issue Mar 13, 2014 · 0 comments

Comments

@abstractionnl
Copy link

In Zend\Mvc\Router\Http\Segment.php line 356

if (!isset($options['translator']) || !$options['translator'] instanceof Translator) { throw new Exception\RuntimeException('No translator provided'); }

The translator class refers to Zend\I18n\Translator\Translator , however, when a Zend\Mvc\I18n\Translator is passed, the exception is thrown.

Suggested solution: Check if the translator implements Zend\I18n\Translator\TranslatorInterface

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants