Skip to content

[FrameworkBundle] Display aliases in debug:container command #47427

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

Closed
wants to merge 1 commit into from

Conversation

jlslew
Copy link

@jlslew jlslew commented Aug 30, 2022

Q A
Branch? 6.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #39381
License MIT
Doc PR -

Running bin/console debug:container cache.app --show-arguments --with-aliases --format FORMAT on a symfony/skeleton:6.2 project

Alias(Symfony\Component\Cache\Marshaller\DefaultMarshaller, Service(cache.default_marshaller))
<argument alias="Symfony\Component\Cache\Marshaller\DefaultMarshaller" type="service" id="cache.default_marshaller"/>
{
    "alias": "Symfony\\Component\\Cache\\Marshaller\\DefaultMarshaller",
    "type": "service",
    "id": "cache.default_marshaller"
}
- Argument: `cache.default_marshaller`
    - Alias: Symfony\Component\Cache\Marshaller\DefaultMarshaller

EDIT: It might break BC because methods' signature has been changed (Added an argument with a default value)

@carsonbot carsonbot added this to the 6.2 milestone Aug 30, 2022
@jlslew jlslew changed the title Feature/39381 Display aliases in debug:container command [Console] Feature/39381 Display aliases in debug:container command Aug 30, 2022
@OskarStark OskarStark changed the title [Console] Feature/39381 Display aliases in debug:container command [Console] Display aliases in debug:container command Sep 8, 2022
@nicolas-grekas nicolas-grekas modified the milestones: 6.2, 6.3 Nov 5, 2022
@carsonbot carsonbot changed the title [Console] Display aliases in debug:container command Display aliases in debug:container command Feb 8, 2023
@94noni
Copy link
Contributor

94noni commented Feb 8, 2023

nice addition it will help in dev a lot

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

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

Can you implement it for the Markdown descriptor as well?

@jlslew
Copy link
Author

jlslew commented Feb 11, 2023

Can you implement it for the Markdown descriptor as well?

Will do

@carsonbot carsonbot changed the title Display aliases in debug:container command [FrameworkBundle] Display aliases in debug:container command Sep 14, 2023
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.

I rebased the PR but there are some failures to fix.
@jlslew could you please have a look?

'id' => (string) $value,
];
}
} catch (\Throwable $throwable) {
Copy link
Member

Choose a reason for hiding this comment

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

can this be more specific? what kind of exceptions can we expect here?

Copy link
Member

Choose a reason for hiding this comment

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

@jlslew Any feedback?

@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.1 Nov 15, 2023
@@ -11,6 +11,7 @@ CHANGELOG
* Add `DomCrawlerAssertionsTrait::assertAnySelectorTextContains(string $selector, string $text)`
* Add `DomCrawlerAssertionsTrait::assertAnySelectorTextSame(string $selector, string $text)`
* Add `DomCrawlerAssertionsTrait::assertAnySelectorTextNotContains(string $selector, string $text)`
* Display aliases in debug:container command
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Display aliases in debug:container command
* Display aliases in `debug:container` command

@nicolas-grekas
Copy link
Member

@jlslew up to resume this PR?
Anyone else would like to take over?

@94noni
Copy link
Contributor

94noni commented Feb 9, 2024

if no news for @jlslew I would be glad to take over his initial work, as this PR is mostly finished and can add great value imho

@fabpot
Copy link
Member

fabpot commented Mar 17, 2024

@94noni Please, can you take over this PR?

@jlslew
Copy link
Author

jlslew commented Mar 18, 2024

@94noni you can take over the PR, thanks.

@94noni
Copy link
Contributor

94noni commented Apr 2, 2024

PR landed here #54459

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.

Display aliases in debug:container command
5 participants