-
Notifications
You must be signed in to change notification settings - Fork 440
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
Remove proxy manager #435
Remove proxy manager #435
Conversation
86f4e5a
to
aaed186
Compare
src/Console/Application.php
Outdated
@@ -51,6 +52,8 @@ public function __construct() | |||
$this->filesystem = new Filesystem(); | |||
$this->container = $this->getContainer(); | |||
$this->setDispatcher($this->container->get('event_dispatcher')); | |||
$this->container->set('console.input', new ArgvInput()); |
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.
This won't work since the output / input wont be configured meaning the verbosity level is not available on the output in the service grumphp.io.console
(which is still marked as lazy). The grumphp.io
is required before the configureIO()
method was called.
You can validate this by running the code with the verbose flag -v
: You won't see the additional information.
7a469bb
to
a1f992e
Compare
Hi @Landerstraeten, |
a1f992e
to
2637454
Compare
Hi @Landerstraeten, |
@EugeneZub, |
Hi @veewee, |
2637454
to
d72bf2f
Compare
src/Console/Application.php
Outdated
// Register the console input and output to the container | ||
$container->set('console.input', $input); | ||
$container->set('console.output', $output); | ||
parent::configureIO($input, $output); |
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.
This won't work since you now configure the input and output from the container and not the ones that are available in the commands. This means the arguments and options won't work in the commands. As you can see, the configureIO() does not return anything and should just configure the arguments that are being passed to the method.
src/Console/Application.php
Outdated
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setDispatcher(EventDispatcherInterface $dispatcher) |
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.
Why did you move this one outside the constructor? It seems better to set a dispatcher then to overwrite thet set* method.
/** | ||
* @return InputInterface | ||
*/ | ||
public function getInput() |
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.
Why did you add these getters? They are not being used at the moment, so I would not make them available at this point.
67a5f33
to
da216d1
Compare
da216d1
to
b5a4aab
Compare
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.
Looks good! Thanks
As the title says, remove the proxy manager.
@veewee (and everyone else), please leave your remaks below.