Skip to content

[6.2] use Symfony\Bundle\SecurityBundle\Security; instead of Symfony\Component\Security\Core\Security; #284

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

Closed
94noni opened this issue Nov 22, 2022 · 1 comment

Comments

@94noni
Copy link

94noni commented Nov 22, 2022

Hi, I would like to contribute for such Symfony v6.2 deprecation

Perhaps in the SymfonyLevelSetList::UP_TO_SYMFONY_62 ?

// src/Controller/MyController.php 

- use Symfony\Component\Security\Core\Security;
+ use Symfony\Bundle\SecurityBundle\Security;

 class MyController extends AbstractController 
 {
    public function index(Security $security)
    {
        // ...
    }
 }

I do not know if rector-symfony is relevant for this, but I think so that is why I propose
Feel free to close, thanks !

@94noni 94noni changed the title [6.2] use Symfony\Bundle\SecurityBundle\Security; instead of e Symfony\Component\Security\Core\Security; [6.2] use Symfony\Bundle\SecurityBundle\Security; instead of Symfony\Component\Security\Core\Security; Nov 22, 2022
@TomasVotruba
Copy link
Member

See #285

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

Successfully merging a pull request may close this issue.

2 participants