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

Set the AreaCode for the app state created by the ObjectManager #28

Merged
merged 1 commit into from
May 29, 2018

Conversation

glennslaven
Copy link
Contributor

Magento Commerce 2.2.3 was throwing errors due to the AreaCode not being set when the SidResolver called into app state to get the area code.

The app state object being inserted by the DI system is null and the instance created by the ObjectManager is a different instance to the one we get injected into our SetupCommand class.

See https://github.com/magento/magento2/blob/2.2.3/lib/internal/Magento/Framework/Session/SidResolver.php#L85

Magento Commerce 2.2.3 was throwing errors due to the AreaCode not being set when the SidResolver called into app state to get the area code.

The app state object being inserted by the DI system is null and the instance created by the ObjectManager is a different instance to the one we get injected into our SetupCommand class.

See https://github.com/magento/magento2/blob/2.2.3/lib/internal/Magento/Framework/Session/SidResolver.php#L85
@glennslaven glennslaven merged commit 4f7ba3f into master May 29, 2018
@glennslaven glennslaven deleted the areacode branch May 29, 2018 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants