lisachenko/go-aop-php — pull request #186 by lisachenko (2014-11-21 18:33:47+00:00)
Title: [WIP] Implementation of pointcut builder with closures

For annotation haters, AOP is awful slow non-intuitive tool. There are a lot of requests to support native closures for definition of advices.

This PR aims to give a tool for defining advices with native PHP syntax.

Example:
```php
$pointcutBuilder = new PointcutBuilder($container);
$pointcutBuilder->before('execution(public **->*(*))', function (MethodInvocation $method) {
echo $method, PHP_EOL;
});

$pointcutBuilder->after('access(* Demo\**->*)', function (ClassFieldAccess $property) {
echo $property, PHP_EOL;
});
```