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

How to modify start.php if using symfony6? #37

Open
cfftony opened this issue May 3, 2023 · 1 comment
Open

How to modify start.php if using symfony6? #37

cfftony opened this issue May 3, 2023 · 1 comment
Labels
question Further information is requested

Comments

@cfftony
Copy link

cfftony commented May 3, 2023

The original index.php is in the public directory:

use App\Kernel;

require_once dirname(DIR).'/vendor/autoload_runtime.php';

return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};

it's very different with https://github.com/joanhey/AdapterMan/blob/master/recipes/symfony.md

How to modify it?

Thanks.

@joanhey
Copy link
Owner

joanhey commented May 12, 2023

You can use the actual recipe.
The Symfony demo blog in the video, it's using v6.1.6.
Laravel it's using v6.2.x with the old Front Controller.

The Symfony people are changing it, to move all the people to use their Runtime front controller.
In reality the Symfony Runtime and Laravel Octane, do the same think, but each one try to move the community to theirs frameworks, and for that they are doing in small different ways and name.

But we need to adapt Adapterman to the new Front Controller, for the future.

@joanhey joanhey added the question Further information is requested label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants