@@ 133-138 (lines=6) @@ | ||
130 | } |
|
131 | ||
132 | // check if one of the blacklists denies access |
|
133 | if ($useRouteBL) { |
|
134 | if (array_search($routeName, $this->configParams['routeBlacklist'], true) !== false) { |
|
135 | $this->logger->warning("azine_geoblocking_bundle: blocked by routeBL.\n".print_r($this->configParams['routeBlacklist'], true)); |
|
136 | $this->blockAccess($event, $country); |
|
137 | } |
|
138 | } |
|
139 | ||
140 | if ($useCountryBL) { |
|
141 | if (array_search($country, $this->configParams['countryBlacklist'], true) !== false) { |
|
@@ 140-145 (lines=6) @@ | ||
137 | } |
|
138 | } |
|
139 | ||
140 | if ($useCountryBL) { |
|
141 | if (array_search($country, $this->configParams['countryBlacklist'], true) !== false) { |
|
142 | $this->logger->warning("azine_geoblocking_bundle: blocked by countryBL\n".print_r($this->configParams['countryBlacklist'], true)); |
|
143 | $this->blockAccess($event, $country); |
|
144 | } |
|
145 | } |
|
146 | ||
147 | // one or both blacklists were defined to be used, but the request was not filtered out => allow the request |
|
148 | $this->logger->info("azine_geoblocking_bundle: allowed, no denial-rule triggered"); |