| 1 | <?php |
||
| 3 | class ControllerPermissionChecker extends Controller { |
||
|
|
|||
| 4 | |||
| 5 | |||
| 6 | /** |
||
| 7 | * checks that the url is contains the secret code and is coming from the correct IP address (if not set to wildcard) |
||
| 8 | * @var array $codesWithIPs |
||
| 9 | * @var array $code - ID parameter in URL |
||
| 10 | * @return Boolean |
||
| 11 | */ |
||
| 12 | public static function permissionCheck($codesWithIPs, $code) { |
||
| 27 | |||
| 28 | } |
||
| 29 |
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.