minor #29955 [Security] use final annotation to allow mocking the class (xabbuh)
minor #29955 [Security] use final annotation to allow mocking the class (xabbuh)

This PR was merged into the 3.4 branch.

Discussion
----------

[Security] use final annotation to allow mocking the class

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29946
| License       | MIT
| Doc PR        |

When the class was initially marked as `final`, it did only contain constants. Since #24337 the `Security` class also contains useful shortcut methods so allowing developers to mock the class in tests looks reasonable to me.

Commits
-------

1da00db247 use final annotation to allow mocking the class

hhamon/symfony,phramz/symfony,vincentaubert/symfony,teohhanhui/symfony,localheinz/symfony,ragboyjr/symfony,ro0NL/symfony,arjenm/symfony,andreia/symfony,Nyholm/symfony,xabbuh/symfony,shieldo/symfony,bendavies/symfony,sroze/symfony,mpdude/symfony,curry684/symfony,mweimerskirch/symfony,zcodes/symfony,stof/symfony,mnapoli/symfony,andrerom/symfony,Koc/symfony,jakzal/symfony,garak/symfony,localheinz/symfony,andrerom/symfony,d-ph/symfony,lyrixx/symfony,zorn-v/symfony,andrerom/symfony,maidmaid/symfony,phramz/symfony,1ed/symfony,chalasr/symfony,phramz/symfony,mnapoli/symfony,HeahDude/symfony,MatTheCat/symfony,pierredup/symfony,tgalopin/symfony,dmaicher/symfony,jakzal/symfony,alekitto/symfony,lyrixx/symfony,hhamon/symfony,ro0NL/symfony,oleg-andreyev/symfony,oleg-andreyev/symfony,HeahDude/symfony,sgehrig/symfony,tgalopin/symfony,tucksaun/symfony,MatTheCat/symfony,ragboyjr/symfony,docteurklein/symfony,mweimerskirch/symfony,MatTheCat/symfony,sroze/symfony,yceruto/symfony,zerkms/symfony,jderusse/symfony,symfony/symfony,Tobion/symfony,ro0NL/symfony,alekitto/symfony,nicolas-grekas/symfony,MatTheCat/symfony,vincentaubert/symfony,ragboyjr/symfony,pierredup/symfony,Simperfit/symfony,Koc/symfony,oleg-andreyev/symfony,mweimerskirch/symfony,ogizanagi/symfony,Slamdunk/symfony,bendavies/symfony,andreia/symfony,joelwurtz/symfony,gonzalovilaseca/symfony,1ed/symfony,mweimerskirch/symfony,Nyholm/symfony,tgalopin/symfony,phramz/symfony,derrabus/symfony,ro0NL/symfony,garak/symfony,zerkms/symfony,alekitto/symfony,andreia/symfony,Simperfit/symfony,chalasr/symfony,Taluu/symfony,fabpot/symfony,mnapoli/symfony,voronkovich/symfony,tucksaun/symfony,arjenm/symfony,paradajozsef/symfony,1ed/symfony,fabpot/symfony,fabpot/symfony,Taluu/symfony,Deamon/symfony,HeahDude/symfony,derrabus/symfony,gnat42/symfony,jvasseur/symfony,Tobion/symfony,garak/symfony,pyrech/symfony,smatyas/symfony,zorn-v/symfony,mnapoli/symfony,Simperfit/symfony,sgehrig/symfony,pyrech/symfony,ajgarlag/symfony,arjenm/symfony,teohhanhui/symfony,kbond/symfony,Nyholm/symfony,1ed/symfony,Slamdunk/symfony,Koc/symfony,mpdude/symfony,shieldo/symfony,gnat42/symfony,zcodes/symfony,derrabus/symfony,sroze/symfony,OskarStark/symfony,Deamon/symfony,Tobion/symfony,localheinz/symfony,curry684/symfony,OskarStark/symfony,bendavies/symfony,vincentaubert/symfony,smatyas/symfony,Taluu/symfony,fabpot/symfony,hhamon/symfony,symfony/symfony,Slamdunk/symfony,ajgarlag/symfony,yceruto/symfony,andreia/symfony,garak/symfony,smatyas/symfony,lstrojny/symfony,docteurklein/symfony,alekitto/symfony,sgehrig/symfony,stof/symfony,jderusse/symfony,HeahDude/symfony,jvasseur/symfony,zerkms/symfony,docteurklein/symfony,smatyas/symfony,lstrojny/symfony,Deamon/symfony,sroze/symfony,kbond/symfony,jvasseur/symfony,stof/symfony,localheinz/symfony,symfony/symfony,mweimerskirch/symfony,docteurklein/symfony,nicolas-grekas/symfony,maidmaid/symfony,bendavies/symfony,OskarStark/symfony,lstrojny/symfony,joelwurtz/symfony,derrabus/symfony,xabbuh/symfony,docteurklein/symfony,voronkovich/symfony,Deamon/symfony,ogizanagi/symfony,Tobion/symfony,chalasr/symfony,zorn-v/symfony,joelwurtz/symfony,d-ph/symfony,jakzal/symfony,gonzalovilaseca/symfony,mpdude/symfony,d-ph/symfony,nicolas-grekas/symfony,Simperfit/symfony,jvasseur/symfony,zcodes/symfony,lyrixx/symfony,paradajozsef/symfony,lyrixx/symfony,damienalexandre/symfony,romaricdrigon/symfony,dmaicher/symfony,maidmaid/symfony,zcodes/symfony,Nyholm/symfony,shieldo/symfony,jderusse/symfony,vincentaubert/symfony,oleg-andreyev/symfony,symfony/symfony,paradajozsef/symfony,smatyas/symfony,romaricdrigon/symfony,teohhanhui/symfony,Koc/symfony,kbond/symfony,jakzal/symfony,ragboyjr/symfony,ogizanagi/symfony,chalasr/symfony,gnat42/symfony,mnapoli/symfony,xabbuh/symfony,sgehrig/symfony,hhamon/symfony,andrerom/symfony,tgalopin/symfony,mpdude/symfony,maidmaid/symfony,dmaicher/symfony,joelwurtz/symfony,zerkms/symfony,shieldo/symfony,gnat42/symfony,tucksaun/symfony,Taluu/symfony,pierredup/symfony,gonzalovilaseca/symfony,OskarStark/symfony,dmaicher/symfony,ajgarlag/symfony,teohhanhui/symfony,pierredup/symfony,arjenm/symfony,romaricdrigon/symfony,curry684/symfony,d-ph/symfony,jderusse/symfony,pyrech/symfony,ajgarlag/symfony,xabbuh/symfony,yceruto/symfony,yceruto/symfony,Simperfit/symfony,voronkovich/symfony,curry684/symfony,kbond/symfony,damienalexandre/symfony,nicolas-grekas/symfony,Slamdunk/symfony,ogizanagi/symfony,zorn-v/symfony,romaricdrigon/symfony,voronkovich/symfony,pyrech/symfony,stof/symfony,damienalexandre/symfony,Deamon/symfony,damienalexandre/symfony,paradajozsef/symfony,gonzalovilaseca/symfony,tucksaun/symfony