docs/development/patterns.md and testing.md were authored against an earlier shape of the framework — every code example was wrong: the non-existent Kernel::init / Kernel::getContainer, a routes/ directory that's actually config/routes.php, RouteDefinition with a method-name arg it never had, a MiddlewareInterface::handle(callable $next) signature that doesn't exist, Config::get as a static method, and a CorsMiddleware that was never written. The architecture/* docs already cover the same ground accurately, so deleting these two files is strictly less misleading than maintaining them. conventions.md trimmed to namespace + code style — generic git conventions and ADR rules removed (the latter live in decisions/README.md). docs/README.md: rewritten index to match the surviving file set, and dropped the "do not touch architecture/development until merged" update rule, which no longer reflects how this project is maintained. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.3 KiB
1.3 KiB
Knowledge Base Index
База знаний проекта Pinecore.
Архитектура
| Тема | Файл |
|---|---|
| Обзор и жизненный цикл запроса | architecture/overview.md |
| Kernel, Config, Environment, ContainerFactory | architecture/bootstrap.md |
| HTTP: Request, Response, Router, Middleware, CORS | architecture/http.md |
| Worker entrypoint и WorkerRunner | architecture/worker.md |
| Auth: JWT, AuthMiddleware | architecture/auth.md |
| Логирование | architecture/logging.md |
| ORM (MongoDB) | architecture/orm.md |
| Console-команды | architecture/console.md |
Разработка
| Тема | Файл |
|---|---|
| Команды запуска, composer, тесты, docker | development/commands.md |
| Соглашения: namespace, code style | development/conventions.md |
Architecture Decision Records
decisions/README.md — индекс ADR и шаблон для новых записей.