Skip to content

[VarDumper] Add ClassStub for clickable & shorter PHP identifiers #19826

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
Sep 2, 2016

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? master
New feature? yes
Tests pass? yes
License MIT
Doc PR symfony/symfony-docs#6946

Tells dumpers when PHP identifiers are used so that they can shorten the namespace and create IDE links to the source.

capture du 2016-09-02 17-07-06

(PR also embeds some fixes/cleanups)

class ClassStub extends ConstStub
{
/**
* Constructor.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not doing that anymore, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docbloc needs a title...
And I'd think it's worth document the arguments a bit...

@fabpot
Copy link
Member

fabpot commented Sep 2, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 788f7e8 into symfony:master Sep 2, 2016
fabpot added a commit that referenced this pull request Sep 2, 2016
…identifiers (nicolas-grekas)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[VarDumper] Add ClassStub for clickable & shorter PHP identifiers

| Q             | A
| ------------- | ---
| Branch?       | master
| New feature?  | yes
| Tests pass?   | yes
| License       | MIT
| Doc PR        | symfony/symfony-docs#6946

Tells dumpers when PHP identifiers are used so that they can shorten the namespace and create IDE links to the source.

![capture du 2016-09-02 17-07-06](https://cloud.githubusercontent.com/assets/243674/18208461/df2c9684-712f-11e6-9fea-de13e21f86c3.png)

(PR also embeds some fixes/cleanups)

Commits
-------

788f7e8 [VarDumper] Add ClassStub for clickable & shorter PHP identifiers
@nicolas-grekas nicolas-grekas deleted the dump-class branch September 2, 2016 19:21
@wouterj
Copy link
Member

wouterj commented Sep 4, 2016

@nicolas-grekas how can I enable the shorten feature? I always get the FQNC without ....

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Sep 4, 2016

Are you sure to be on latest master? Can you try with a different browser just in case it's a CSS support issue? When looking at the source code, can you see the abbr around the namespace?

@wouterj
Copy link
Member

wouterj commented Sep 4, 2016

I was on latest master, but the extracted data appeared not to. It works as expected now.

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.

4 participants