| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | 1 | public function __construct(ContainerInterface $container) |
|
| 13 | { |
||
| 14 | 1 | if (!$container->hasParameter('maxmind_geoip_data_file_path')) { |
|
| 15 | 1 | throw new \InvalidArgumentException("It seems, the MaxmindGeoIP-Bundle is not installed. The parameter 'maxmind_geoip_data_file_path' is not defined."); |
|
| 16 | } |
||
| 17 | $filePath = $container->getParameter('maxmind_geoip_data_file_path'); |
||
| 18 | $this->geoip = new GeoIp($filePath); |
||
| 19 | } |
||
| 20 | |||
| 28 |