Skip to content

Commit 21cc0ee

Browse files
committed
Merge pull request symfony#3211 from krizon/patch-1
[Cookbook][Security] Update Voters: add class properties
2 parents 4764b12 + 8c41201 commit 21cc0ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cookbook/security/voters.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ and compare the IP address against a set of blacklisted IP addresses:
6767
6868
class ClientIpVoter implements VoterInterface
6969
{
70+
private $container;
71+
72+
private $blacklistedIp;
73+
7074
public function __construct(ContainerInterface $container, array $blacklistedIp = array())
7175
{
7276
$this->container = $container;

0 commit comments

Comments
 (0)