Support AOP with php8 Attribute #38078
Unanswered
biiiiiigmonster
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
With the introduction of
Attribute
in php8, will laravel implement AOP based on this?As far as I know, AOP implementation mechanism in other languages (java) is proxy mechanism, but it seems rude based on the traditional
php-fpm
mode, and it may also cause some performance loss.However, AOP can make the code more elegant, which is very consistent with the style of laravel. And with the
laravel/octane
, the performance loss will no longer affect. Iflaravel/octane
can become the mainstream in the future,AOP
will also help better!Beta Was this translation helpful? Give feedback.
All reactions