refactor: Remove RepositoryFactory (#19176)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
a6827493f0
commit
f23cf98317
25 changed files with 423 additions and 308 deletions
|
|
@ -1,18 +0,0 @@
|
|||
"""
|
||||
Extension for initializing repositories.
|
||||
|
||||
This extension registers repository implementations with the RepositoryFactory.
|
||||
"""
|
||||
|
||||
from core.repositories.repository_registry import register_repositories
|
||||
from dify_app import DifyApp
|
||||
|
||||
|
||||
def init_app(_app: DifyApp) -> None:
|
||||
"""
|
||||
Initialize repository implementations.
|
||||
|
||||
Args:
|
||||
_app: The Flask application instance (unused)
|
||||
"""
|
||||
register_repositories()
|
||||
Loading…
Add table
Add a link
Reference in a new issue