mirror of
https://github.com/halo-dev/docs.git
synced 2026-05-11 01:00:58 +08:00
chore: remove deprecated plugin wrapper (#379)
### What this PR does? 移除已经过时的 PluginWrapper 引用 ```release-note None ```
This commit is contained in:
@@ -61,14 +61,14 @@ description: 这个例子展示了如何开发 Todo List 插件
|
|||||||
```java
|
```java
|
||||||
package run.halo.tutorial;
|
package run.halo.tutorial;
|
||||||
|
|
||||||
import org.pf4j.PluginWrapper;
|
import run.halo.app.plugin.PluginContext;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import run.halo.app.plugin.BasePlugin;
|
import run.halo.app.plugin.BasePlugin;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class TodoListPlugin extends BasePlugin {
|
public class TodoListPlugin extends BasePlugin {
|
||||||
public TodoListPlugin(PluginWrapper wrapper) {
|
public TodoListPlugin(PluginContext pluginContext) {
|
||||||
super(wrapper);
|
super(pluginContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -154,9 +154,9 @@ public class Todo extends AbstractExtension {
|
|||||||
public class TodoListPlugin extends BasePlugin {
|
public class TodoListPlugin extends BasePlugin {
|
||||||
+ private final SchemeManager schemeManager;
|
+ private final SchemeManager schemeManager;
|
||||||
|
|
||||||
- public TodoListPlugin(PluginWrapper wrapper) {
|
- public TodoListPlugin(PluginContext pluginContext) {
|
||||||
+ public TodoListPlugin(PluginWrapper wrapper, SchemeManager schemeManager) {
|
+ public TodoListPlugin(PluginContext pluginContext, SchemeManager schemeManager) {
|
||||||
super(wrapper);
|
super(pluginContext);
|
||||||
+ this.schemeManager = schemeManager;
|
+ this.schemeManager = schemeManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,14 +61,14 @@ description: 这个例子展示了如何开发 Todo List 插件
|
|||||||
```java
|
```java
|
||||||
package run.halo.tutorial;
|
package run.halo.tutorial;
|
||||||
|
|
||||||
import org.pf4j.PluginWrapper;
|
import run.halo.app.plugin.PluginContext;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import run.halo.app.plugin.BasePlugin;
|
import run.halo.app.plugin.BasePlugin;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class TodoListPlugin extends BasePlugin {
|
public class TodoListPlugin extends BasePlugin {
|
||||||
public TodoListPlugin(PluginWrapper wrapper) {
|
public TodoListPlugin(PluginContext pluginContext) {
|
||||||
super(wrapper);
|
super(pluginContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -154,9 +154,9 @@ public class Todo extends AbstractExtension {
|
|||||||
public class TodoListPlugin extends BasePlugin {
|
public class TodoListPlugin extends BasePlugin {
|
||||||
+ private final SchemeManager schemeManager;
|
+ private final SchemeManager schemeManager;
|
||||||
|
|
||||||
- public TodoListPlugin(PluginWrapper wrapper) {
|
- public TodoListPlugin(PluginContext pluginContext) {
|
||||||
+ public TodoListPlugin(PluginWrapper wrapper, SchemeManager schemeManager) {
|
+ public TodoListPlugin(PluginContext pluginContext, SchemeManager schemeManager) {
|
||||||
super(wrapper);
|
super(pluginContext);
|
||||||
+ this.schemeManager = schemeManager;
|
+ this.schemeManager = schemeManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user