Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Alternative way to initialize ConsoleApplicationResolver #52

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

Conversation

Copy link
Contributor

@ossinkine ossinkine commented Jun 21, 2019

I propose to add an alternative more simple way to initialize ConsoleApplicationResolver. The most popular way to create a console application is already described in README - it's just create an application kernel and create a console application with it. And no need to create a file specially for this.

@ossinkine ossinkine force-pushed the console-application-resolver branch from c0744c0 to 5952eb3 Compare June 21, 2019 13:53
@ossinkine ossinkine force-pushed the console-application-resolver branch from 5952eb3 to bc54d84 Compare June 21, 2019 14:04
Copy link
Contributor Author

@lookyman WDYT?

Copy link
Collaborator

TBH I don't like it, but I don't know why. 🤷 Let me get a second opinion. @ondrejmirtes Do we want it?

Copy link
Member

I don't think it's necessary. There's already a way to do it which is straightforward. I'm not even sure how this should work - do Symfony application even extend the Kernel class with their own? I worry that people would shoot themselves in the foot with this one and complain it doesn't work.

Copy link
Contributor Author

I agree that current implementation is more flexable, you can define your application as you mind. But I think a separate file with a console application creation for PHPStan is redundantly. I would to get it simpler, ideally the application from bin/console should be used but I don't know how. :)

Copy link
Member

I think it’s simple enough without any downside currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /