php-aop
php-aop copied to clipboard
Resolve magic constants to a resolved path
I have some php code that looks like this:
public function checkInternalGroupPermissionForPerson(string $auth, ?int $personId) {
include_once dirname(__DIR__, 3) . '/churchdb/churchdb_db.php';
$groups = getMyGroupIdsWhereIAmAllowed($auth);
$personIds = churchdb_getAllPeopleIdsFromGroups($groups);
return isset($personIds[$personId]);
}
The lives in a class for which php-aop creates a proxy. The file churchdb_db.php
does not need a proxy and so the include
does not work.
How can i solve this?