Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it working in Symfony 3.2.4 #101

Open
stefandoorn opened this issue Mar 6, 2017 · 2 comments
Open

Can't get it working in Symfony 3.2.4 #101

stefandoorn opened this issue Mar 6, 2017 · 2 comments

Comments

@stefandoorn
Copy link

I haven't tested in other versions of Symfony yet, but I have the impression things are not properly working.

app/config/routing.yml

bundle_frontend:
    resource: "@ExampleBundle/Resources/config/routing/frontend.yml"
    type: be_simple_i18n

@ExampleBundle/Resources/config/routing/frontend.yml

bundle_frontend_index:
    path: /
    methods: [GET]
    locales: { en: "/welcome", fr: "/bienvenue", de: "/willkommen", nl: "/test" }
    defaults:
        _controller: bundle_frontend.index_controller:indexAction

Looking at bin/console debug:router the path stays / all the time, and none of the URL's are accessible. Removing the 'path' configuration above doesn't change a thing.

Using prefixes on the first configuration actually leads to an error thrown by the default Routing module of Symfony saying that prefix cannot be an array:

  [Symfony\Component\Config\Exception\FileLoaderLoadException]                                                                                                                    
  Warning: trim() expects parameter 1 to be string, array given in /var/www/path/app/config/routing.yml (which is being imported from "/var/www/path/app/config/routing_de  
  v.yml").                                                                                                                                                                        

@monisnap-jonathan
Copy link

Got the exactly same

@ibrambe
Copy link

ibrambe commented Apr 4, 2018

Duplicate of #90

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

No branches or pull requests

3 participants