Skip to content

Fix registering a service from another sub-package#1317

Merged
jaapio merged 2 commits intophpDocumentor:mainfrom
wouterj:fix-registering-undefined-class
Mar 18, 2026
Merged

Fix registering a service from another sub-package#1317
jaapio merged 2 commits intophpDocumentor:mainfrom
wouterj:fix-registering-undefined-class

Conversation

@wouterj
Copy link
Copy Markdown
Contributor

@wouterj wouterj commented Mar 15, 2026

The guides-restructured-text package registered a service for a class living in the guides-graphs package. This creates an invalid service when using the package without guides-graphs.

The Symfony DI container is more strict in newer versions, causing this invalid service to create a compile time error.

The UML directive is already correctly registered by the guides-graphs package:

->set(UmlDirective::class)
->tag('phpdoc.guides.directive')

@jaapio jaapio force-pushed the fix-registering-undefined-class branch from 3431d52 to 19bfdc6 Compare March 18, 2026 19:43
@jaapio jaapio enabled auto-merge March 18, 2026 19:44
@jaapio jaapio merged commit 685c945 into phpDocumentor:main Mar 18, 2026
58 checks passed
@wouterj wouterj deleted the fix-registering-undefined-class branch March 18, 2026 20:19
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.

3 participants