PHP code example of eeliu / php_simple_aop
1. Go to this page and download the library: Download eeliu/php_simple_aop library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eeliu / php_simple_aop example snippets
$classHandler = new AspectClassHandle(\yii\web\UrlManager::class);
$classHandler->addJoinPoint('parseRequest', \Pinpoint\Plugins\yii2\UrlRule::class);
$cls[] = $classHandler;
php
table path for caching AOP code, default is /tmp
// define('AOP_CACHE_DIR',__DIR__.'/../Cache/'); // optional
// API for register your own plugins eg:
define('PP_REQ_PLUGINS', Pinpoint\Plugins\DefaultRequestPlugin::class);