docs(repository): разделить контракт и реализацию, связать с исключениями - #77
Merged
Conversation
…иями - In-memory реализация перенесена из domain/repository.md в infrastructure/repository.md (класс в Infrastructure-неймспейсе) - Example InMemoryServiceStatusRepository.php перенесён в layers/infrastructure/examples/ - Удалены дублирующие строки и починена ссылка на Criteria в domain/repository.md - Добавлена обратная ссылка Infrastructure→Domain и метод save() в пример ProjectRepository - В exception.md добавлены заголовки NotFoundExceptionInterface и InfrastructureExceptionInterface - Первые упоминания исключений в репозиторных поках оформлены ссылками на exception.md
- Убраны разрозненные заголовки NotFoundExceptionInterface/InfrastructureExceptionInterface из «Категории» - Добавлена секция «Маркерные интерфейсы» с таблицей соответствия класс → интерфейс - Ссылки из domain/repository.md переведены на якорь новой секции
Слово не используется в конвенциях и неточно (маркерный интерфейс — пустой тег); секция переименована в «Интерфейсы исключений», якорь и ссылки обновлены.
В конвенциях внутренние кросс-док ссылки даются без фрагмента ([CriteriaMapper](criteria-mapper.md) и т.д.); ссылки на exception.md теперь ведут на документ целиком, а не на якорь секции.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Реструктуризация репозиторной документации: разделение контракта (Domain) и реализации (Infrastructure) + связывание с конвенцией исключений.
Изменения
domain/repository.mdвinfrastructure/repository.md— классInMemoryServiceStatusRepositoryлежит в Infrastructure-неймспейсе, это реализация, а не контракт.InMemoryServiceStatusRepository.phpизlayers/domain/examples/вlayers/infrastructure/examples/(git mv).domain/repository.md.criteria-mapper.mdпод текстомcriteria.md→ теперь на доменный контракт).save()в примерProjectRepository(соответствует контракту, делаетpersist()безflush()).NotFoundExceptionInterfaceиInfrastructureExceptionInterfaceвexception.md(раньше только конкретные классы).exception.md.Проверка
composer validate-docs✓composer validate-md-links✓ (якоря резолвятся)composer check→ No errors