-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve magic constants to a resolved path #69
Comments
Hi @djschilling, I will have a look at this in the evening :) |
This seems to be a bigger problem than I thought. This is, like I thought, a problem with magic constants. When a class is matched by AOP, it will be proxied and woven. The proxy is a 1:1 copy of the original class which extends and includes the woven class. The woven class is the class that does the whole AOP logic. Inside the proxied class I can replace all magic constants, which works. I will commit this change shortly. But here is where it gets complicated, lets imagine a matched class has a trait or extends another class. If that class also includes magic constants like Possible solutions:Solution 1:
Problems:
Solution 2:
Problems:
|
Hi @djschilling, I have released I'm keeping this issue open for the other bugs. |
I updated to 1.2.9 but this is still not working:
Here is the error:
PermChecker.php : system/src/Auth/Permissions/PermChecker.php |
Hi @djschilling, I will try it with your code and see what's going wrong. |
Hi @djschilling, Sadly I can't reproduce your error. I tried testing it like this: The code in the Can you tell me what your proxy file looks like? |
I have some php code that looks like this:
The lives in a class for which php-aop creates a proxy. The file
churchdb_db.php
does not need a proxy and so theinclude
does not work.How can i solve this?
The text was updated successfully, but these errors were encountered: