feat(05-domain-seoadditional-cron-releases): Domain layer kompletny — SeoAdditional + Cron + Releases

Phase 5 complete:
- Domain\SeoAdditional\SeoAdditionalRepository (elementDelete, elementSave, elementDetails)
- Domain\Cron\CronRepository (3 pub + 12 private helper methods)
- Domain\Releases\ReleasesRepository (9 metod: wersje, licencje, discover)
- Domain\Releases\UpdateRepository (auto-update, konstruktor($db, $settings))
- 4 legacy factory wrappers zaktualizowane do wrapper delegation

Domain layer: 13/13 repozytoriów kompletnych.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 00:57:13 +02:00
parent bf4b7c6429
commit f7c7c0bb88
14 changed files with 1292 additions and 755 deletions

View File

@@ -2,21 +2,21 @@
## Project Reference
See: .paul/PROJECT.md (updated 2026-04-04)
See: .paul/PROJECT.md (updated 2026-04-26)
**Core value:** Autorski system CMS umożliwiający zarządzanie treściami i stronami internetowymi.
**Current focus:** Phase 4 complete — ready for Phase 5
**Current focus:** Phase 5 complete — ready for Phase 6 (Admin: Base Infrastructure)
## Current Position
Milestone: v0.1 Refaktoryzacja
Phase: 4 of 19 (Domain: Authors + Newsletter) — Complete
Plan: 04-01 complete
Status: Loop closed, ready for next PLAN
Last activity: 2026-04-04 — Phase 4 complete, UNIFY done
Phase: 6 (Admin: Base Infrastructure) — Not started
Plan: Not started
Status: Ready to plan Phase 6
Last activity: 2026-04-26 — Phase 5 complete, transitioned to Phase 6
Progress:
- Milestone: [▓▓░░░░░░░] 20%
- Milestone: [▓▓░░░░░░░] 26% (5 of 19 phases)
## Loop Position
@@ -29,8 +29,8 @@ PLAN ──▶ APPLY ──▶ UNIFY
## Performance Metrics
**Velocity:**
- Total plans completed: 4
- Total execution time: ~22min
- Total plans completed: 5
- Total execution time: ~27min
**By Phase:**
@@ -40,17 +40,22 @@ PLAN ──▶ APPLY ──▶ UNIFY
| 02-shared-email-security | 1/1 | ~8min | ~8min |
| 03-domain-scontainers-banners | 1/1 | ~2min | ~2min |
| 04-domain-authors-newsletter | 1/1 | ~2min | ~2min |
| 04h-hotfix-https-updates | 1/1 | ~90min | ~90min |
| 05-domain-seoadditional-cron-releases | 1/1 | ~5min | ~5min |
## Accumulated Context
### Decisions
- 2026-04-26: Phase 5 — UpdateRepository przyjmuje ($db, $settings) w konstruktorze — settings potrzebny do update_key i wersji.
- 2026-04-26: Phase 5 — Cron helper methods (get_site_meta_*) stały się private w CronRepository — były wywoływane tylko wewnętrznie.
- 2026-04-26: Phase 5 — class.Cron.php zachowuje brak namespace (klasa globalna) — cron.php używa bezpośrednio.
- 2026-04-26: Hotfix 04h — full-patch wszystkich 121 paczek (zamiast minimal-patch). Powód: paczki nadpisują class.S.php w różnych wersjach, częściowy patch ryzykuje regresję podczas chain-update.
- Centralny autoloader zamiast duplikatów
- CsrfToken: single token per session (shopPRO pattern)
- Email: PHPMailer require via __DIR__ absolute paths
- Shared layer kompletny: Cache, Helpers, Html, Image, Tpl, Email, Security
- Wrapper delegation: factory creates new repo per call (no singleton)
- Front repos: $lang[0] passed explicitly, repos don't use globals
- Front caching: migrated from \Cache:: to \Shared\Cache\CacheHandler::
- Newsletter: globals ($settings, $lang) passed as explicit params to repo methods
### Deferred Issues
@@ -61,10 +66,10 @@ None.
## Session Continuity
Last session: 2026-04-04
Stopped at: Phase 4 complete, loop closed
Next action: Run /paul:plan for Phase 5 (Domain: SeoAdditional + Cron + Releases)
Resume file: .paul/phases/04-domain-authors-newsletter/04-01-SUMMARY.md
Last session: 2026-04-26
Stopped at: Phase 5 complete, loop closed
Next action: /paul:plan dla Phase 6 (Admin: Base Infrastructure)
Resume file: .paul/ROADMAP.md
---
*STATE.md — Updated after every significant action*