红联Linux门户
Linux帮助

Go! 0.4.0发布,PHP的AOP库

发布时间:2013-08-06 09:11:41来源:红联作者:empast
Go! 是一个 PHP 5.4 库,让 PHP 支持 AOP 面向方面编程方法,无需 PECL 扩展、Runkit、evals 或者 DI 容器支持。可使用 XDebug 轻松调试。

Go! 0.4.0 改进记录:

Privileged advice for aspect allows you to access private and protected properties and methods of objects inside advice.
Better integration with composer.
"True" pointcut references give the ability to compose a complex pointcut from a simple pointcuts.

Pointcut now accepts "$this" in references to point to the current aspect instance.

Intercepting system functions such as fopen(), file_get_contents(), etc.

An annotation property pointcut was added.

The ability to declare multiple interfaces and/or traits with single DeclareParent.

A DeclareError interceptor was added

官方首页:https://github.com/lisachenko/go-aop-php

来自:开源中国社区
文章评论

共有 0 条评论