mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-10-30 08:36:55 +09:00
Pre-reqs for extracting WordPress into a bundled default-installed extension (#38). No behavior change yet — WordPress still ships as core; this only inverts the couplings so the physical move is mechanical: - app/services/wordpress_bridge.py: importlib bridge to the (future) dashed package app.plugins.serverkit-wordpress, with a two-speed fallback to the legacy core location so callers work before AND after the move. - plugin_service: _ensure_builtin_backend_importable() registers a dashed builtin backend in-place via spec_from_file_location (no copy) — solves dev/test/prod loadability of a default-installed dashed package; extra_blueprints manifest support (WP needs 3 blueprints / 4 mounts incl. the /pipelines alias); FLAGSHIP_SLUGS + seed_flagship_extensions() + flagship-aware install/uninstall (D4: default-installed, uninstallable, never deletes tracked files). - create_app: seed flagships before load_all_plugins (inert until the folder exists). - Re-point the 6 lazy WP-service callers (preview/webhook/env-pipeline/apps/ builtin_handlers/backup_policy) through the bridge; drop the eager WordPressService import from app/services/__init__.py. Models stay core. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
721 B
Python
21 lines
721 B
Python
# Services
|
|
from app.services.system_service import SystemService
|
|
from app.services.nginx_service import NginxService
|
|
from app.services.ssl_service import SSLService
|
|
from app.services.process_service import ProcessService
|
|
from app.services.log_service import LogService
|
|
from app.services.php_service import PHPService
|
|
# NOTE: WordPressService is no longer eagerly imported here. WordPress moved into
|
|
# the bundled ``serverkit-wordpress`` extension (D4); core code that still needs
|
|
# it reaches it lazily via ``app.services.wordpress_bridge`` so core boot never
|
|
# pulls the WordPress stack.
|
|
|
|
__all__ = [
|
|
'SystemService',
|
|
'NginxService',
|
|
'SSLService',
|
|
'ProcessService',
|
|
'LogService',
|
|
'PHPService',
|
|
]
|