PHP API Ref: external links #2533
Closed
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.
Add an external link to extended parents from
Symfonynamespace.In ibexa/core#377, I add the link into the class description. But, because of inheritance, it doesn't fit well when a class inherit this doc in cascade.
For example,
BeforeAddRelationEventreference page has the same "Event emitted before action execution." introduction thanBeforeEventref page by inheritance.BeforeAddRelationEvent.phpdoesn't have such doc block. It comes from the extended class doc inBeforeEvent.php.BeforeAddRelationEventshouldn't pretend being linked directly toSymfony\Contracts\EventDispatcher\Event(my PoV here is debatable). So, here is an other approach.In 7060ffd I propose to link
Symfonynamespace to https://github.com/symfony/symfony/It could be safer to only link
Symfony\Contractsnamespace but I'm optimist.symfony/symfonyisn't a bundle and seems to be a meta repo concatenating several Symfony bundles. But, it's useful as it's the one using Symfony version.To target Symfony
5.4branch should be safe, and it's simpler to maintain than targeting a specific patch tag.I have tested all the generated links and it works find, no broken link.
PHP API Reference previews of all the enhanced classes:
Checklist