[Cookbook][Security] Update Voters: add class properties and inject request

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all (or 2.2+)
| Fixed tickets | -

Added class properties and improved constructor to conform to DI best practices.