Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Console] application/command as text/xml/whatever decoupling#7454
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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.
it should be@param object if$object can only be an object. And if it can be something else (a scalar or an array), the argument should be renamed)
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.
changed, thanks
igorw commentedApr 12, 2013
This PR is massive. It should be broken down into smaller commits that can be reviewed more easily. If possible perhaps even into separate smaller PRs that can be applied atomically without breaking stuff. |
jfsimon commentedApr 12, 2013
@igorw I just unsquashed my commits for you. |
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.
Wouldn't it be a lot simpler if the application text descriptor itself were responsible for rendering its elements? I think it would simplify the design and lead to less implicit dependency on the order of the descriptors.
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.
I'm not sure to understand, this class just acts as a "descriptor selector".
igorw commentedApr 12, 2013
I'm not sure if introducing the |
jfsimon commentedApr 12, 2013
@igorw do you think the markdown formatter is overkill? |
igorw commentedApr 12, 2013
Possibly. I guess re-implementing pandoc inside of symfony seems like a bit much. |
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.
Removing the public method is a BC break. you should provide a BC layer
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.
I guessasXml() methods should be present too and must be tagged as@deprecated.
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.
right
jfsimon commentedApr 13, 2013
@igorw I think your right, I'll simplify the markdown descriptor. |
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.
Relying on reflection to get the definition looks like a hack
stof commentedApr 14, 2013
I don't like the hard coupling of descriptors, where each descriptor creates new instances of other descriptors. I leads to several issues:
You should retrieve the needed descriptor from the selector IMO |
jfsimon commentedApr 14, 2013
fabpot commentedApr 20, 2013
jfsimon commentedApr 20, 2013
@fabpot absolutely. Should I do the same with |
fabpot commentedApr 20, 2013
Let's do that in the same PR (and indeed the router debug command should also be updated). |
fabpot commentedApr 23, 2013
Can you also removed the |
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.
Can you remove the blank lines between@param lines?
…fsimon)This PR was squashed before being merged into the master branch (closes#7887).Discussion----------[FrameworkBundle] adds routing/container descriptorsThe goal of this PR is to add descriptors (as in#7454) for routing and container. This will permit add a `--format` option to `router:debug` and `container:debug` commands (with `txt`, `json`, `xml` and `md` formats).Commits-------22f9bc8 [FrameworkBundle] adds routing/container descriptors
This PR removes description generation from
Command,ApplicationandInputDefinitionclasses and delegate it to specialized descriptor classes, making it dead simple to add new output formats.Maybe this could include other commands, like
router:debugorcontainer:debug(see#5740)?DescriptorProviderwhich usesDescriptorInterfaceobjects to describe things.txtdescriptors.xmldescriptors.jsondescriptors.mddescriptors.