-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Exception are not translated to store scope #32953
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
Changes from 1 commit
1b4a3bc
f096a71
f05bec2
e7c2ee9
6265480
ab5d921
dcfa3b9
511ab01
77e8af4
01a3904
cd123f5
e565f3f
b51f420
379d2b0
ab8b8b4
0cef678
f6329fe
f3fc159
2f656a6
c7ed1e5
4635cf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,6 +7,8 @@ | |||||
|
||||||
namespace Magento\GraphQl\Controller; | ||||||
|
||||||
use Magento\Framework\App\Area; | ||||||
use Magento\Framework\App\AreaList; | ||||||
use Magento\Framework\App\FrontControllerInterface; | ||||||
use Magento\Framework\App\Request\Http; | ||||||
use Magento\Framework\App\RequestInterface; | ||||||
|
@@ -88,6 +90,11 @@ class GraphQl implements FrontControllerInterface | |||||
* @var ContextFactoryInterface | ||||||
*/ | ||||||
private $contextFactory; | ||||||
|
||||||
/** | ||||||
* @var AreaList $areaList | ||||||
*/ | ||||||
private $appState; | ||||||
|
||||||
/** | ||||||
* @param Response $response | ||||||
|
@@ -114,7 +121,8 @@ public function __construct( | |||||
QueryFields $queryFields, | ||||||
JsonFactory $jsonFactory = null, | ||||||
HttpResponse $httpResponse = null, | ||||||
ContextFactoryInterface $contextFactory = null | ||||||
ContextFactoryInterface $contextFactory = null, | ||||||
AreaList $areaList | ||||||
|
AreaList $areaList | |
AreaList $areaList = null |
Outdated
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.
$this->areaList = $areaList; | |
$this->areaList = $areaList ?: ObjectManager::getInstance()->get(AreaList::class); |
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.
Please see the updated PR.
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.
I think
private $appState;
should be change intoprivate $areaList;
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.
Fixed. Stupid me. I had an error here before but only half fixed it.