Skip to content

Retire services_yaml_profile/_audit, read registration from the container - #16

Merged
GSadee merged 2 commits into
mainfrom
retire-services-yaml-tools
Sep 28, 2026
Merged

GSadee merged 2 commits into
mainfrom
retire-services-yaml-tools

Conversation

@mpysiak

@mpysiak mpysiak commented Sep 28, 2026

Copy link
Copy Markdown
Member

Stacked on #15.

Summary

  • Removes sylius_services_yaml_profile and sylius_services_yaml_audit (tools, wiring, tests). They parsed services YAML and failed on custom tags; the container is the source of truth for how a class ended up registered. sylius_services_yaml_patch_exclude stays — it edits the file.
  • INSTRUCTIONS.md, README and the skills now point to the Symfony bridge for registration checks:
    • symfony-service-detail --id=<FQCN> — autowired / autoconfigured / public flags (new in 0.14) and resolved arguments,
    • "not found" + a hit in symfony-services --tag=container.excluded --query=<FQCN> — the class was swallowed by a glob exclude:,
    • without the bridge: bin/console debug:container <id> --show-arguments (same flags).
  • Session-startup checklist starts with sylius_project_profile (it already reports the exclude: entries and the bridge presence).
  • Skills follow the 0.14 symfony-service-detail output shape: constructor wiring is under arguments, not constructor.
  • sylius-verify: dropped --format=json on symfony-service-detail — the output is only read, and since 0.14 tools:call switches to JSON by itself for large results.

Test plan

  • vendor/bin/phpunit (unit + integration)
  • vendor/bin/phpstan analyse
  • Checked on the test application's dumped container that glob-excluded classes are present as abstract definitions tagged container.excluded

@mpysiak
mpysiak force-pushed the retire-services-yaml-tools branch from 4208060 to f4e703f Compare September 28, 2026 04:39
@mpysiak
mpysiak added this pull request to stack #18 September 28, 2026 05:03
Base automatically changed from bump-mate-0.14 to main September 28, 2026 05:19
… lookups

Both tools parsed services YAML and broke on custom tags. How a class ended up
registered is now read from the compiled container through the Symfony bridge:
symfony-service-detail reports the autowired/autoconfigured flags since 0.14,
and classes swallowed by a glob exclude show up under the container.excluded
tag. bin/console debug:container stays as the fallback without the bridge.

Skills follow the 0.14 service-detail shape (arguments, not constructor) and no
longer force --format=json where the output is only read.
@GSadee
GSadee force-pushed the retire-services-yaml-tools branch from f4e703f to 244454f Compare September 28, 2026 05:19
@GSadee
GSadee merged commit 48a5c97 into main Sep 28, 2026
2 checks passed
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.

2 participants