Skip to content
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

Start with a basic bridge so that we don't depend on external packages #511

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acasademont
Copy link
Contributor

Right now, when freshly installing php-pm, you can't even run the bin/ppm start command because the defaults (HttpKernel bridge) will make it crash if not present. By using a StaticBridge default, we provide a nicer experience to the end user. It's not a very useful bridge, but at least it doesn't crash on a loop.

@@ -16,7 +16,7 @@ trait ConfigTrait
protected function configurePPMOptions(Command $command)
{
$command
->addOption('bridge', null, InputOption::VALUE_REQUIRED, 'Bridge for converting React Psr7 requests to target framework.', 'HttpKernel')
->addOption('bridge', null, InputOption::VALUE_REQUIRED, 'Bridge for converting React Psr7 requests to target framework. (e.g., HttpKernel)', 'StaticBridge')
Copy link
Contributor

Choose a reason for hiding this comment

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

I just want to point out that this warrants to major version bump for me. Changing the default behavior when this option is not provided has the potential to break existing setups.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jkrzefski you're totally right, although it sounds weird that someone would start ppm with the defaults for anything serious, logging and debugging are also on by default

Copy link
Contributor

Choose a reason for hiding this comment

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

I can totally imagine people only setting those options whose default values don't match their use case. So debug behavior and logging might be disabled explicitly but the bridge selection is left unchanged, since it "works by default".

@andig
Copy link
Contributor

andig commented Jan 8, 2022

How shall we proceed with this one?

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.

None yet

3 participants