Closed
9506

Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.4.0-BETA4 |
Steps to reproduce:
symfony new reproducer 3.4 && cd reproducer
- Uncomment the
translator: { fallbacks: ['%locale%'] }
line inapp/config/config.yml
composer up
bin/console c:c -vvv
You'll get the following deprecation logged:
INFO [php] User Deprecated: The class "Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader" is deprecated since version 3.4 and will be removed in 4.0. Use "Symfony\Component\Translation\Reader\TranslationReader" instead.
[
"exception" => ErrorException {
#message: "User Deprecated: The class "Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader" is deprecated since version 3.4 and will be removed in 4.0. Use "Symfony\Component\Translation\Reader\TranslationReader" instead. "
#code: 0
#file: "./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php"
#line: 17
#severity: E_USER_DEPRECATED
trace: {
./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.php:17 { …}
./vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php:143 { …}
Symfony\Component\Debug\DebugClassLoader->loadClass() {}
spl_autoload_call() {}
./vendor/symfony/symfony/src/Symfony/Component/Config/Resource/ClassExistenceResource.php:78 { …}
./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:351 { …}
./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:344 { …}
./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:279 { …}
./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:799 { …}
./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:851 { …}
./vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php:190 { …}
./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:816 { …}
./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:634 { …}
./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:137 { …}
./vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:154 { …}
./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:180 { …}
./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:161 { …}
./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php:117 { …}
./vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:252 { …}
./vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:942 { …}
./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:83 { …}
./vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:225 { …}
./vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:71 { …}
./vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:129 { …}
./bin/console:27 {
› $application = new Application($kernel);
› $application->run($input);
›
}
}
}
]
It seems the ContainerBuilder::getReflectionClass()
method is called with the TranslationLoader
as $class
argument when collecting lineages, triggering autoloading and the deprecation through ClassExistenceResource::isFresh()
.
It does not happen when setting container.dumper.inline_class_loader
to false
.