for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace SpomkyLabs\IpFilterBundle\Voter;
use SpomkyLabs\IpFilterBundle\Model\IpManagerInterface;
use SpomkyLabs\IpFilterBundle\Model\RangeManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class OldIpVoter extends BaseIpVoter
{
protected $environment;
protected $container;
protected $im;
protected $rm;
public function __construct($environment, ContainerInterface $container, IpManagerInterface $im, RangeManagerInterface $rm)
$this->environment = $environment;
$this->container = $container;
$this->im = $im;
$this->rm = $rm;
}
protected function getRequest()
return $this->container->get('request');
protected function getEnvironment()
return $this->environment;
protected function getIpManager()
return $this->im;
protected function getRangeManager()
return $this->rm;