update plugins.md

This commit is contained in:
成武 2014-01-20 16:38:50 +08:00
parent 01dc8f8133
commit 2a31df9330
1 changed files with 2 additions and 7 deletions

View File

@ -35,14 +35,9 @@
### 插件类
Every plugin has to supply a class which implements the
[`Composer\Plugin\PluginInterface`][3]. The `activate()` method of the plugin
is called after the plugin is loaded and receives an instance of
[`Composer\Composer`][4] as well as an instance of
[`Composer\IO\IOInterface`][5]. Using these two objects all configuration can
be read and all internal objects and state can be manipulated as desired.
每一个插件都必须提供一个实现了 [`Composer\Plugin\PluginInterface`][3] 接口的类。类中的 `activate()` 方法在插件载入后被调用,并接收两个类的实例:[`Composer\Composer`][4] 和 [`Composer\IO\IOInterface`][5]。使用这两个对象可以读取所有的配置,操作所有的内部对象和状态。
Example:
例如:
namespace phpDocumentor\Composer;