Open krombox opened 8 years ago
Hi @krombox,
Sorry for the late reply! It seems that you are running into a bug could you please provided me this the symfony version that you are using?
Also did you enable the annotation in the bundle configuration?
# app/config/config.yml
be_simple_i18n_routing:
# if true, enables the annotation route loader
annotations: true
Hello @boekkooi !
I'm having the same trouble...
Symfony 2.8.11
also on dev-master
Hi, Having same issue. It seems that folder src/Routing/Annotation does not exists. My line in composer: "besimple/i18n-routing-bundle": "^2.3" Thanks!
I also have this problem. Symfony version 3.1.5
same issue
same issue @boekkooi. Would you please check
Symfony version: 3.1.6
package: dev-master
Make sure the line
new BeSimple\I18nRoutingBundle\BeSimpleI18nRoutingBundle(),
is above new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
in your AppKernel.php
so the loaders of the bundle are added before the default annotation loaders of symfony.
@Powerhamster doesn't seem to work, any other ideas, why it might not work?
@RuslanZavacky I have no other idea, this fixed it for me.
I also have this problem Symfony 2.8.17
FYI, the following steps helped me on Symfony 3.2.7 to work with annotations:
After installation and configuration of the bundle:
1) AppKernel:
new BeSimple\I18nRoutingBundle\BeSimpleI18nRoutingBundle()
should be before
new Symfony\Bundle\FrameworkBundle\FrameworkBundle()
2) refresh the page with @I18nRoute annotation
3) clear the cache
It works.
Hope this helps someone.
Thanks, janwebdev, that worked for me too on Symfony 3.3
Hey guys,
When new BeSimple\I18nRoutingBundle\BeSimpleI18nRoutingBundle()
is at the beginning, does
annotation @Route
still work for you?
@janwebdev, worked for me too. Thanks
But all @Route annotations should be replaced by @i18nroute.
Good day. I am starting to solve one of my tasks with your bundle. It looks easy to use and exactly what i need. I have installed latest version since it has annotation support
"besimple/i18n-routing-bundle": "dev-master"
. Also, i am using Symfony 2.6.*(tried with 3.1.3 too). Yaml and XML working well, but Annotations not.After call
/dashboard
i gotNo route found for "GET /dashboard"
Also, when i tried to run test with
phpunit vendor/besimple/i18n-routing-bundle/tests/Routing/Loader/AnnotatedRouteControllerLoaderTest.php
i got: errors
What i am doing wrong? Could someone help me?
Thanks