-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Create a hyperlink to interfaces/classes that can be autowired #30469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a hyperlink to interfaces/classes that can be autowired #30469
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I was hoping PRs on the topics, you're one of the first! There are many more places like this where linking could be nice :)
src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php
Outdated
Show resolved
Hide resolved
Hi @nicolas-grekas, Thanks for your review. I still have the problem with that the service alias is getting linked too. Do you know where I should look at? edit: might be a problem of zsh (I think it assumes that cache.app is a url) |
src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Command/DebugAutowiringCommand.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/console.xml
Outdated
Show resolved
Hide resolved
Status: Needs Review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice feature! Thank you Serkan.
Thank you @SerkanYildiz. |
…utowired (SerkanYildiz) This PR was squashed before being merged into the 4.3-dev branch (closes #30469). Discussion ---------- Create a hyperlink to interfaces/classes that can be autowired | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Added hyperlink to definition of interfaces/classes that can be used for autowiring. But I need help with: - the aliases are becoming hyperlinks too, but shouldn't. It's outputting `<fg=yellow;href=phpstorm://open?file=filepath&line=17>Symfony\Contracts\Translation\TranslatorInterface</> <fg=cyan>(translator.default)</>` - it currently works with phpstorm because it's hardcoded but it should work with framework.ide option, but don't know what the best approach is to support that config option. Commits ------- a3dfcee Create a hyperlink to interfaces/classes that can be autowired
Added hyperlink to definition of interfaces/classes that can be used for autowiring.
But I need help with:
the aliases are becoming hyperlinks too, but shouldn't.
It's outputting
<fg=yellow;href=phpstorm://open?file=filepath&line=17>Symfony\Contracts\Translation\TranslatorInterface</> <fg=cyan>(translator.default)</>
it currently works with phpstorm because it's hardcoded but it should work with framework.ide option, but don't know what the best approach is to support that config option.