CI events flow simplified
This commit is contained in:
parent
29dfc13a48
commit
34ee5f8754
7 changed files with 59 additions and 174 deletions
|
|
@ -1,15 +1,10 @@
|
|||
from injectable import inject
|
||||
|
||||
from app.core.core import WebhookProcessor
|
||||
from app.events import SimpleEventBus
|
||||
from app.core.woodpecker import Woodpecker
|
||||
|
||||
|
||||
class AutowireSupport:
|
||||
|
||||
@staticmethod
|
||||
def webhook_processor():
|
||||
return inject(WebhookProcessor)
|
||||
|
||||
@staticmethod
|
||||
def event_bus():
|
||||
return inject(SimpleEventBus)
|
||||
def woodpecker():
|
||||
return inject(Woodpecker)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue