Skip to content

Commit

Permalink
fix php guide #516 (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeliu committed Mar 28, 2024
1 parent 3fc9f5f commit 48508ef
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions plugins/PHP/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,25 @@
When you add clue(clues), DO NOT assignment with large string or string included some special characters(https://www.freeformatter.com/json-escape.html)
3. Add the function that you care about such as "///@hook:app\User::adduser" before ClassName(XXXPlugins), onBefore, onEnd or onException. If you care about all cases, please call before&after&around function.

4. Remove the "__class_index_table" file under AOP_CACHE_DIR.

5. Copy your plugins files into source tree/plugins_dir, and add this directory into composer.json{"autoload"}.
4. Inject plugin into your project:
$ cd your_project_folder
$ mkdir Plugins/AutoGen
$ cp your_xxxplugins.php Plugins/AutoGen

5. Enable autoloading Plugins/ into composer.json

```
"autoload": {
"psr-4": {
......
"Plugins\\": "your source tree/plugins_dir"
# location for your Plugins
"Plugins\\": "Plugins"
}
},
```

6. Update your autoload. $ composer update.
7. Enjoy the pinpoint-php-aop.
6. Update your autoload. $composer update.

## Protocol

> Json -> Thrift/GRPC
Expand Down

0 comments on commit 48508ef

Please sign in to comment.