Thanks to visit codestin.com
Credit goes to github.com

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

ZF 2.3 Segment route translator #5965

@abstractionnl

Description

@abstractionnl

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions