Skip to content

bridge to symfony and php-sgi #4

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
trim-fly opened this issue May 5, 2015 · 4 comments
Closed

bridge to symfony and php-sgi #4

trim-fly opened this issue May 5, 2015 · 4 comments

Comments

@trim-fly
Copy link

trim-fly commented May 5, 2015

Is it possible to use/combine this project with uWSGI server with php-sgi ( https://github.com/unbit/uwsgi-phpsgi/ ) plugin?
i think it should be great to use stable and super-fast uWSGI server and symfony2 as application.

@andig
Copy link
Contributor

andig commented May 11, 2015

From https://github.com/unbit/uwsgi-phpsgi/:

will load app.php from the current directory and will execute its 'application' function at every request

The whole point with php-pm is that you do NOT need to load the php scripts on each request. Or am I missing something?

@trim-fly
Copy link
Author

yes. main point of 'php-sgi' plugin is to make application load all environment/classes/etc just once (same as php-pm project), and then on each request it will call only one entry-point function (currently hardcoded to "application" but will be manageable on release). it is just like infinite loop around "application" function.
so, i think this project (httpkernel bridge) can be adjusted somehow to load all symfony components and then just provide "application" function to actually do the job on request.
i am sysadmin, not a programmer, so maybe i'm wrong and my request is a nonsence.

@andig
Copy link
Contributor

andig commented May 11, 2015

Both projects are apparently doing the same thing- load stuff once. I don't see why we would wish to modify this one to provide functionality to the other to achieve the same result we already have? Wontfix imho.

@marcj
Copy link
Member

marcj commented May 11, 2015

I don't get your point either @trim-fly

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

No branches or pull requests

3 participants