Skip to content

Commit 1a69839

Browse files
committed
Apply interface changing of Plugin
1 parent 86dad77 commit 1a69839

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/Plugin.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Plugin extends plugin.Plugin {
1313
override val description: String = "Provides Gist feature on GitBucket."
1414
override val versions: List[Version] = List(Version(1, 0))
1515

16-
override def initialize(context: ServletContext, registry: PluginRegistry): Unit = {
16+
override def initialize(registry: PluginRegistry): Unit = {
1717
// Add Snippet link to the header
1818
registry.addJavaScript(".*",
1919
"""
@@ -26,11 +26,11 @@ class Plugin extends plugin.Plugin {
2626
}
2727

2828
// Mount controller
29-
context.mount(new GistController, "/*")
29+
registry.addController(new GistController, "/*")
3030

3131
println("-- Gist plug-in initialized --")
3232
}
3333

34-
override def shutdown(context: ServletContext, registry: PluginRegistry): Unit = {
34+
override def shutdown(registry: PluginRegistry): Unit = {
3535
}
3636
}

0 commit comments

Comments
 (0)