| 1 | <?php |
||
| 3 | class ControllerPermissionChecker extends Controller |
||
|
|
|||
| 4 | { |
||
| 5 | |||
| 6 | |||
| 7 | /** |
||
| 8 | * checks that the url is contains the secret code and is coming from the correct IP address (if not set to wildcard) |
||
| 9 | * @var array $codesWithIPs |
||
| 10 | * @var array $code - ID parameter in URL |
||
| 11 | * @return Boolean |
||
| 12 | */ |
||
| 13 | public static function permissionCheck($codesWithIPs, $code) |
||
| 29 | } |
||
| 30 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.