Skip to content

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Sep 12, 2016

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

In #19139 we moved the lint:yaml command from the FrameworkBundle to the Yaml component.
The usage did not change in the framework, the old command became a child of the Yaml one.

But now, using this command in the standalone Yaml requires to create an application. Here I propose to provide the application as an executable, so that the command is really usable directly when installing the yaml+console components as dependencies.

I may be wrong when I think it's worth it but to me, moving the command to the yaml component doesn't fully make sense if it cannot be used directly outside of the full stack framework.

@fabpot
Copy link
Member

fabpot commented Sep 12, 2016

I think I'm slightly 👎 on adding a script here. This is a component, so it gives you building blocks that you can assemble the way you want. What others think? ping @symfony/deciders

@chalasr
Copy link
Member Author

chalasr commented Sep 12, 2016

I think you're right, adding such example to the documentation should be enough for the use case.

@chalasr chalasr closed this Sep 12, 2016
@fabpot
Copy link
Member

fabpot commented Sep 12, 2016

@chalasr Can you submit a doc PR then? That sounds indeed very useful to have this in the docs.

@chalasr
Copy link
Member Author

chalasr commented Sep 12, 2016

@chalasr chalasr deleted the yaml/lint branch September 14, 2016 23:11
xabbuh added a commit to symfony/symfony-docs that referenced this pull request Nov 28, 2016
…luz) This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes #6963). Discussion ---------- [Yaml] Add lint:yaml command usage This documents symfony/symfony#19139 (merged on 3.2) and closes symfony/symfony#19916. Commits ------- ed4cb40 Remove an unneeded code directive 44b4ad0 Use `terminal` instead of `bash` for console code 78075c1 Yaml] Add lint:yaml command usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment