ver. 0.294: Remove all 12 legacy autoload/shop/ classes (~2363 lines)
Complete Domain-Driven Architecture migration: - Phase 1-4: Transport, ProductSet, Coupon, Shop, Search, Basket, ProductCustomField, Category, ProductAttribute, Promotion - Phase 5: Order (~562 lines) + Product (~952 lines) - ~20 Product methods migrated to ProductRepository - Apilo sync migrated to OrderAdminService - Production hotfixes: stale Redis cache (prices 0.00), unqualified Product:: refs in LayoutEngine, object->array template conversion - AttributeRepository::getAttributeValueById() Redis cache added Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@ composer test
|
||||
|
||||
PHPUnit 9.6 via `phpunit.phar`. Bootstrap: `tests/bootstrap.php`. Config: `phpunit.xml`.
|
||||
|
||||
Current suite: **610 tests, 1816 assertions**.
|
||||
Current suite: **610 tests, 1817 assertions**.
|
||||
|
||||
### Creating Updates
|
||||
See `docs/UPDATE_INSTRUCTIONS.md` for the full procedure. Updates are ZIP packages in `updates/0.XX/`. Never include `*.md` files, `updates/changelog.php`, or root `.htaccess` in update ZIPs.
|
||||
@@ -59,7 +59,7 @@ shopPRO/
|
||||
│ │ ├── LayoutEngine.php # Layout engine (\front\LayoutEngine)
|
||||
│ │ ├── Controllers/ # DI controllers (\front\Controllers\)
|
||||
│ │ └── Views/ # Static views (\front\Views\)
|
||||
│ └── shop/ # Legacy shop classes (Product, Order, etc.)
|
||||
│ └── shop/ # EMPTY — all legacy classes migrated to Domain\
|
||||
├── admin/ # Admin panel
|
||||
│ ├── templates/ # Admin view templates
|
||||
│ └── layout/ # Admin CSS/JS/icons
|
||||
@@ -93,7 +93,7 @@ Custom autoloader in each entry point (not Composer autoload at runtime). Tries
|
||||
- `\admin\Controllers\` → `autoload/admin/Controllers/` (lowercase a — existing directory)
|
||||
- `\Shared\` → `autoload/Shared/`
|
||||
- `\front\` → `autoload/front/`
|
||||
- `\shop\` → `autoload/shop/`
|
||||
- ~~`\shop\`~~ → `autoload/shop/` (EMPTY — all classes migrated to `\Domain\`)
|
||||
- Do NOT use `\Admin\` (uppercase A) — the server directory is `admin/` (lowercase)
|
||||
|
||||
### Domain-Driven Architecture (migration complete for admin + frontend)
|
||||
@@ -187,6 +187,7 @@ Before starting implementation, review current state of docs (see AGENTS.md for
|
||||
- `docs/PROJECT_STRUCTURE.md` — detailed project structure and module status
|
||||
- `docs/REFACTORING_PLAN.md` — Domain migration plan and status
|
||||
- `docs/FRONTEND_REFACTORING_PLAN.md` — frontend migration plan (mostly complete)
|
||||
- `docs/LEGACY_SHOP_REFACTORING_PLAN.md` — plan usunięcia 12 legacy klas z `autoload/shop/` (UKOŃCZONY — wszystkie 12 klas usunięte)
|
||||
- `docs/DATABASE_STRUCTURE.md` — full database schema
|
||||
- `docs/TESTING.md` — test suite status and history
|
||||
- `docs/FORM_EDIT_SYSTEM.md` — form system architecture
|
||||
|
||||
Reference in New Issue
Block a user