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

symfony/framework-bundle v3.1.0 incompatibility #7

Open
jakubkulhan opened this issue Jun 7, 2016 · 0 comments
Open

symfony/framework-bundle v3.1.0 incompatibility #7

jakubkulhan opened this issue Jun 7, 2016 · 0 comments

Comments

@jakubkulhan
Copy link
Contributor

jakubkulhan commented Jun 7, 2016

symfony/framework-bundle defines in Resources/config/cache.xml service cache.default_redis_provider with class: Redis, however, when the redis extension is not loaded, and therefore class does not exist, ClassMultiMap will throw and exception:

Class Redis does not exist
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/skrz/autowiring-bundle/DependencyInjection/ClassMultiMap.php:25
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/skrz/autowiring-bundle/DependencyInjection/Compiler/ClassMapBuildCompilerPass.php:29
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/symfony/dependency-injection/Compiler/Compiler.php:104
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/symfony/dependency-injection/ContainerBuilder.php:545
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/src/Bayo/AppKernel.php:81
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/symfony/http-kernel/Kernel.php:117
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/symfony/framework-bundle/Test/KernelTestCase.php:146
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/test/Bayo/Controller/AppTestCase.php:19
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/vendor/symfony/framework-bundle/Test/WebTestCase.php:33
 /Users/jakub/Dropbox/Projects/bayo/bayo-server/test/Bayo/Controller/FeedControllerTest.php:9

I suggest creating something similar to ignores_services in extension configuration to be able to ignore services from being processed for autowiring.

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

1 participant