Skip to content

Commit

Permalink
chore: remove deprecated plugin wrapper (#161)
Browse files Browse the repository at this point in the history
### What this PR does?
移除对已过时的 PluginWrapper 的引用,Halo 2.18.0 版本后将不在支持从 BasePlugin 中获取 PluginWrapper ,也不再支持依赖注入 PluginWrapper,使用 PluginContext 代替

see also halo-dev/halo#6243 for more details

```release-note
None
```
  • Loading branch information
guqing authored Jul 2, 2024
1 parent cb968de commit 40f66ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/run/halo/s3os/S3OsPlugin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package run.halo.s3os;

import org.pf4j.PluginWrapper;
import org.springframework.stereotype.Component;
import run.halo.app.plugin.BasePlugin;
import run.halo.app.plugin.PluginContext;

/**
* @author johnniang
Expand All @@ -11,8 +11,8 @@
@Component
public class S3OsPlugin extends BasePlugin {

public S3OsPlugin(PluginWrapper wrapper) {
super(wrapper);
public S3OsPlugin(PluginContext pluginContext) {
super(pluginContext);
}

@Override
Expand Down

0 comments on commit 40f66ff

Please sign in to comment.