schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

WebUI throws an error #501

Open picks44 opened 5 years ago

picks44 commented 5 years ago
Q A
Bundle version 1.4.3
SF version 3.4.17

I've just implemented the bundle with the basic conf, but when i try to access the WebUI, I get the following error. Any clue? Thanks!

Catchable Fatal Error: Argument 1 passed to JMS\TranslationBundle\Controller\TranslateController::__construct() must be an instance of JMS\TranslationBundle\Translation\ConfigFactory, none given, called in C:\wamp\www\PicksEta\var\cache\dev\classes.php on line 4176 and defined

Here is my config

jms_translation:
    configs:
        app:
            dirs: ["%kernel.root_dir%/Resources/views", "%kernel.root_dir%/../src"]
            output_dir: "%kernel.root_dir%/Resources/translations"
            excluded_names: ["*TestCase.php", "*Test.php"]
            excluded_dirs: [cache, data, logs]

And my routing_dev.yml

JMSTranslationBundle_ui:
    resource: "@JMSTranslationBundle/Controller/"
    type:     annotation
    prefix:   /_trans