You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to fix all the deprecated errors on my project. I've already fixed most of them, however there are some of them (shown below) for which I'm not being able to track down what's causing them.
Jun 3 11:21:07 container apache2: PHP Deprecated: The Symfony\Component\Security\Core\SecurityContextInterface interface is deprecated since version 2.6 and will be removed in 3.0. in /srv/project/current/sf2/app/cache/dev/classes.php on line 2996
Jun 3 11:21:07 container apache2: PHP Stack trace:
Jun 3 11:21:07 container apache2: PHP 1. {main}() /srv/project/current/sf2/web/app_dev.php:0
Jun 3 11:21:07 container apache2: PHP 2. Symfony\Component\HttpKernel\Kernel->handle() /srv/project/current/sf2/web/app_dev.php:33
Jun 3 11:21:07 container apache2: PHP 3. Symfony\Component\HttpKernel\Kernel->boot() /srv/project/current/sf2/app/bootstrap.php.cache:2427
Jun 3 11:21:07 container apache2: PHP 4. Symfony\Component\HttpKernel\Kernel->doLoadClassCache() /srv/project/current/sf2/app/bootstrap.php.cache:2393
Jun 3 11:21:07 container apache2: PHP 5. Symfony\Component\ClassLoader\ClassCollectionLoader::load() /srv/project/current/sf2/app/bootstrap.php.cache:2558
Jun 3 11:21:07 container apache2: PHP 6. require_once() /srv/project/current/sf2/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php:91
Jun 3 11:21:07 container apache2: PHP 7. trigger_error() /srv/project/current/sf2/app/cache/dev/classes.php:2996
Jun 3 11:21:07 container apache2: PHP Deprecated: The Symfony\Component\Security\Core\SecurityContext class is deprecated since version 2.6 and will be removed in 3.0. Use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage or Symfony\Component\Security\Core\Authorization\AuthorizationChecker instead. in /srv/project/current/sf2/app/cache/dev/classes.php on line 3008
Jun 3 11:21:07 container apache2: PHP Stack trace:
Jun 3 11:21:07 container apache2: PHP 1. {main}() /srv/project/current/sf2/web/app_dev.php:0
Jun 3 11:21:07 container apache2: PHP 2. Symfony\Component\HttpKernel\Kernel->handle() /srv/project/current/sf2/web/app_dev.php:33
Jun 3 11:21:07 container apache2: PHP 3. Symfony\Component\HttpKernel\Kernel->boot() /srv/project/current/sf2/app/bootstrap.php.cache:2427
Jun 3 11:21:07 container apache2: PHP 4. Symfony\Component\HttpKernel\Kernel->doLoadClassCache() /srv/project/current/sf2/app/bootstrap.php.cache:2393
Jun 3 11:21:07 container apache2: PHP 5. Symfony\Component\ClassLoader\ClassCollectionLoader::load() /srv/project/current/sf2/app/bootstrap.php.cache:2558
Jun 3 11:21:07 container apache2: PHP 6. require_once() /srv/project/current/sf2/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php:91
Jun 3 11:21:07 container apache2: PHP 7. trigger_error() /srv/project/current/sf2/app/cache/dev/classes.php:3008
I've already adjusted my code to make use of security.token_storage and security.authorization_checker instead of the security.context service so I'm failing to grasp where this is coming from.
Could this be coming from symfony itself?
Also, this only appears when using app_dev.php and only on the log file used by PHP (currently syslog) and not the symfony one.
I know that I can silence this by replacing Debug::enable() with Debug::enable(E_ALL & ~E_USER_DEPRECATED) at the app_dev.php but I would really prefer to understand where this is coming from and fix it if possible.
Thanks in advance for your feedback.
Best regards,
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue @Restless-ET. However, this seems to be the same as #14831 which was fixed in #14837 and will be part of Symfony 2.7.1. So, I'm going to close here.
Hello,
I'm trying to fix all the deprecated errors on my project. I've already fixed most of them, however there are some of them (shown below) for which I'm not being able to track down what's causing them.
I've already adjusted my code to make use of
security.token_storage
andsecurity.authorization_checker
instead of thesecurity.context
service so I'm failing to grasp where this is coming from.Could this be coming from symfony itself?
Also, this only appears when using
app_dev.php
and only on the log file used by PHP (currentlysyslog
) and not the symfony one.I know that I can silence this by replacing
Debug::enable()
withDebug::enable(E_ALL & ~E_USER_DEPRECATED)
at theapp_dev.php
but I would really prefer to understand where this is coming from and fix it if possible.Thanks in advance for your feedback.
Best regards,
The text was updated successfully, but these errors were encountered: