Skip to content

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

Merged
1 commit merged into from
Mar 24, 2019
Merged

Add project path to app Kernel instanciation #555

1 commit merged into from
Mar 24, 2019

Conversation

tdutrion
Copy link
Contributor

Q A
License MIT

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.

Copy link

@ghost ghost left a 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.

Copy link
Member

@nicolas-grekas nicolas-grekas left a 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

@tdutrion
Copy link
Contributor Author

tdutrion commented Mar 23, 2019

Missing similar change in bin/console

I totally forgot this entrypoint... (though I'm also removing the bin/console in production 😄)
Would that be an edit in symfony/console/3.3/bin/console or should I create a 4.2 folder with that modification @nicolas-grekas ?

@nicolas-grekas
Copy link
Member

To me: 3.3

Copy link

@ghost ghost left a 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.

@ghost ghost merged commit 693ec9e into symfony:master Mar 24, 2019
ghost pushed a commit that referenced this pull request Mar 24, 2019
@@ -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__));
Copy link
Member

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 ?

Copy link
Contributor Author

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 👍

Copy link
Member

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.

@fabpot
Copy link
Member

fabpot commented Mar 29, 2019

reverted

fabpot added a commit that referenced this pull request Mar 29, 2019
This reverts commit d87f53b, reversing
changes made to 8bd4f13.
This pull request was closed.
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.

4 participants