Skip to content
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

ASPECT_CACHEABLE=true don't work because\Ray\Aop\Compiler::compile compile and saved files every requests #63

Closed
4n70w4 opened this issue Nov 19, 2019 · 0 comments

Comments

@4n70w4
Copy link
Contributor

4n70w4 commented Nov 19, 2019

        if (class_exists($aopClassName, false)) {

https://github.com/ray-di/Ray.Aop/blob/8dcf395c66c206a238ad1a609e984c01e773cdaa/src/Compiler.php#L79

class_exists ( string $class_name [, bool $autoload = TRUE ] ) : bool

This function checks whether or not the given class has been defined.

class_name
The class name. The name is matched in a case-insensitive manner.

autoload
Whether or not to call __autoload by default.

Because class_exists checks without autoload - every request recompiled all classes with AOP annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant