Patchwork interceptor for PHP AOP
Interceptor for php-aop using stream wrapper of PHP via the Patchwork package., (*1)
This interceptor was created only for R&D concerning the possibility of going through a protocol handler and PHP stream (stream wrapper), it does not support the interception of "around" kind, nor the interception of properties., (*2)
Use just for your own _R&D_ (or playing) or to inspire you when creating an interceptor., (*3)
The lib Patchwork is not being created for use of AOP, so this interceptor has no future. However, the PHP stream wrapper to create an interceptor is a viable solution!, (*4)
Getting Started
Install pecl-aop-interceptor
Download patchwork-interceptor (and configure your autoloader) or use composer require: "aop-io/patchwork-interceptor"
., (*5)
Usage
use Aop\Aop;
// Init
$aop = new Aop([ 'php_interceptor' => '\PatchworkInterceptor\PatchworkInterceptor']);
The usage of the PHP-AOP abstraction layer is documented on AOP.io., (*6)
License
MIT (c) 2014, Nicolas Tallefourtane., (*7)
Author