Skip to content

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

Merged
merged 1 commit into from
Mar 15, 2019
Merged

Create a hyperlink to interfaces/classes that can be autowired #30469

merged 1 commit into from
Mar 15, 2019

Conversation

SerkanYildiz
Copy link
Contributor

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.

@SerkanYildiz SerkanYildiz changed the title Create a hyperlink for interfaces/classes that can be autowired Create a hyperlink to interfaces/classes that can be autowired Mar 7, 2019
@nicolas-grekas nicolas-grekas added this to the next milestone Mar 7, 2019
Copy link
Member

@nicolas-grekas nicolas-grekas left a 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 :)

@SerkanYildiz
Copy link
Contributor Author

SerkanYildiz commented Mar 7, 2019

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)

@SerkanYildiz
Copy link
Contributor Author

Status: Needs Review

Copy link
Member

@javiereguiluz javiereguiluz left a 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.

@nicolas-grekas
Copy link
Member

Thank you @SerkanYildiz.

@nicolas-grekas nicolas-grekas merged commit a3dfcee into symfony:master Mar 15, 2019
nicolas-grekas added a commit that referenced this pull request Mar 15, 2019
…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
@SerkanYildiz SerkanYildiz deleted the add-hyperlinks-for-autowirable-services branch March 15, 2019 13:26
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot mentioned this pull request May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants