Skip to content

feat(sniffs): allow Mapper classes in Service/ directory#58

Merged
prikotov merged 1 commit into
masterfrom
task/allow-mapper-in-service-dir
May 24, 2026
Merged

feat(sniffs): allow Mapper classes in Service/ directory#58
prikotov merged 1 commit into
masterfrom
task/allow-mapper-in-service-dir

Conversation

@prikotov
Copy link
Copy Markdown
Owner

Проблема

ServiceStructureSniff ругался на Mapper-классы внутри Service/Mapper не был в списке разрешённых суффиксов. Агент выносил Mapper из Service/ вместо добавления исключения.

Решение

  1. Sniff: Mapper добавлен в $allowedSuffixes (Helper, Factory, Dto, Mapper)
  2. Конвенция mapper.md: добавлен путь Infrastructure/Service/{ServiceName}/Mapper/{Name}Mapper

Чек-лист

  • composer check пройден
  • Тест-фикстура SessionPayloadMapper.inc добавлена

@prikotov prikotov force-pushed the task/allow-mapper-in-service-dir branch from 662cd71 to af27a6b Compare May 24, 2026 16:49
- ServiceStructureSniff: add Mapper to allowed suffixes (Helper, Factory, Dto, Mapper)
- mapper.md convention:
  - add Domain/Service/{ServiceName}/{Name}Mapper path
  - add Infrastructure/Service/{ServiceName}/{Name}Mapper path
  - remove extra Mapper/ subdirectory from Component and Service paths
  (mapper sits directly next to service, not in a Mapper/ subfolder)
@prikotov prikotov force-pushed the task/allow-mapper-in-service-dir branch from af27a6b to af66b33 Compare May 24, 2026 16:51
@prikotov prikotov merged commit 749ea3a into master May 24, 2026
3 checks passed
@prikotov prikotov deleted the task/allow-mapper-in-service-dir branch May 24, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant