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

#973 PHP Web Server Action for built-in app development #988

Merged
merged 9 commits into from
Aug 20, 2023

Conversation

belisoful
Copy link
Member

@belisoful belisoful commented Aug 17, 2023

  • Adds the PHP Dev-Test Web Server Action to serve the application. This has the feature of abiding by the "Quiet" flags at different levels. I haven't seen any other built-in PHP Web Server [Yii, Laravel] do the quiet thing. Minor feature.
  • Removed "-" from CLI Text action, it was confusing
  • TStdOutWriter. This fopens 'php://stdout' when processing a web page b/c STDOUT is not available.
  • Corrected TOutputWriter to write to the output rather than stdout.
  • Added README.md text for starting the PHP Web Server Action after installing the application.

- Adds the PHP Dev-Test Web Server Action to serve the application.  This has the feature of abiding by the "Quiet" flags at different levels.  I haven't seen any other built-in PHP Web Server [Yii, Laravel]. Minor feature.
- Removed "-" from CLI Text action, it was confusing
- TStdOutWriter.  This fopens  'php://stdout' when processing a web page b/c STDOUT is not available.
- Corrected TOutputWriter to write to the output rather than stdout.
- Added README.md text for starting the PHP Web Server Action after installing the application.
Copy link
Member

@ctrlaltca ctrlaltca left a comment

Choose a reason for hiding this comment

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

Hi, as always awesome addition!
Can you please check the few comments i left?

framework/IO/TOutputWriter.php Show resolved Hide resolved
framework/Shell/Actions/TWebServerAction.php Outdated Show resolved Hide resolved
framework/Shell/Actions/TWebServerAction.php Outdated Show resolved Hide resolved
@belisoful
Copy link
Member Author

I sat on this to "bake" for a few weeks to make sure everything needed was included. The quiet options were added because of this integration time.

You have no idea how glad I am that you are here to check and validate the code. I appreciate these code reviews immensely.

- Better documentation for TOutputWriter.
- TStdOutWriter removes flush and sets the _stdout var.
- TWebServerAction corrects Port var, setAll "null" check, and minor tweak to the CLI help text.
@belisoful
Copy link
Member Author

belisoful commented Aug 20, 2023

my hope is that this PR will help people get started with PRADO much faster.

@belisoful
Copy link
Member Author

I think that's it unless you find more.

@ctrlaltca ctrlaltca merged commit 91641e9 into pradosoft:master Aug 20, 2023
2 checks passed
@belisoful belisoful deleted the 973-web-server branch August 26, 2023 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants