goaop

Troubles with GO! Aspect-Oriented Framework

◇◆丶佛笑我妖孽 提交于 2019-12-24 04:27:09
问题 If someone work with GO! framework, can you help me. I install framework on php 5.3.13. Demo example is working. But my own example doesn't work. Aspect(method beforeMethodExecution) is not perfomed. Here is my code. Main file: //1 Include kernel and all classes if (file_exists(__DIR__ .'/../../vendor/autoload.php')) { $loader = include __DIR__ .'/../../vendor/autoload.php'; } // 2 Make own ascpect kernel use Go\Core\AspectKernel; use Go\Core\AspectContainer; class Kernel extends AspectKernel

AOP in plain PHP that doesn't require any PECL-extentions (Go!) - How?

孤人 提交于 2019-12-01 16:08:12
问题 There is a framework called Go! Aspect-Oriented Framework for PHP And it is made in plain PHP, doesn't require any PECL-extentions and DI-containers to work. What's more can be integrated with any existing PHP frameworks and libraries (with or without additional configuration). And there is no runtime checks of pointcuts, no runtime annotations parsing, no evals and __call methods, no slow proxies and call_user_func_array(). Fast bootstraping process (2-20ms) and advice invocation. So I am