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

The parent definition "router.default" defined for definition "jms_i18n_routing.router" does not exist. #1

Closed
florianpreusner opened this issue Jul 21, 2011 · 1 comment

Comments

@florianpreusner
Copy link

Hi,

I have installed your bundle as submodule in symfony RC4 (vendor/bundles/JMS). I followed your instructions and added the bundle in my kernel.

But when i call my website following exception is thrown:

RuntimeException: The parent definition "router.default" defined for definition "jms_i18n_routing.router" does not exist.

in /var/www/uplimit/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveDefinitionTemplatesPass.php line 63
at ResolveDefinitionTemplatesPass->resolveDefinition() in /var/www/uplimit/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveDefinitionTemplatesPass.php line 49
at ResolveDefinitionTemplatesPass->process() in /var/www/uplimit/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 109
at Compiler->compile() in /var/www/uplimit/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 394
at ContainerBuilder->compile() in /var/www/uplimit/app/bootstrap.php.cache line 1227
at Kernel->buildContainer() in /var/www/uplimit/app/bootstrap.php.cache line 1138
at Kernel->initializeContainer() in /var/www/uplimit/app/bootstrap.php.cache line 869
at Kernel->boot() in /var/www/uplimit/app/bootstrap.php.cache line 1038
at Kernel->loadClassCache() in /var/www/uplimit/web/app_dev.php line 17

I have added the config lines after your security extra bundle:

jms_security_extra:
secure_controllers: true
secure_all_services: false

jms_i18n_routing:
default_locale: en
locales: [en, de]
strategy: prefix

Have I done something wrong? :/

@schmittjoh
Copy link
Owner

No, you just need to use the latest symfony version. It doesn't work with RC4.

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

2 participants