-
-
Notifications
You must be signed in to change notification settings - Fork 498
Add project path to app Kernel instanciation #555
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
Conversation
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.
Pull request passes validation.
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.
Missing similar change in bin/console
I totally forgot this entrypoint... (though I'm also removing the |
To me: 3.3 |
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.
Pull request passes validation.
@@ -33,6 +33,6 @@ if ($_SERVER['APP_DEBUG']) { | |||
} | |||
} | |||
|
|||
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); | |||
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG'], dirname(__DIR__)); |
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.
shouldn't it be part of a 4.3+ recipe only instead ?
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.
Same for the other entrypoint then (public/index.php
) I guess.
To me: 3.3
That's been done acting on @nicolas-grekas's recommendation above. I'll let him give his own rationale 👍
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.
Duplicating all the files in the recipe is not worth it.
reverted |
Changed invocation of the Kernel according to the feature from symfony/symfony#30651.
This removes the need for a
composer.json
to define the project folder when using the framework bundle.