Skip to content

Commit 77ef04e

Browse files
author
Eric Bohanon
committed
Merge remote-tracking branch 'remotes/origin/MAGETWO-81532-Support-for-registered-customers' into MAGETWO-82674-Full-Text-Search
2 parents ad33ac2 + a971049 commit 77ef04e

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

app/code/Magento/GraphQl/Model/EntityAttributeList.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ class EntityAttributeList
1818
private $management;
1919

2020
/**
21-
* EAV setup factory
22-
*
2321
* @var EavSetupFactory
2422
*/
2523
private $eavSetupFactory;
2624

2725
/**
28-
* EAV setup instance
29-
*
3026
* @var EavSetup
3127
*/
3228
private $eavSetup;

app/code/Magento/GraphQl/Model/ResolverContext.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class ResolverContext extends \Magento\Framework\Model\AbstractExtensibleModel i
2121
/**#@+
2222
* Constants defined for type of context
2323
*/
24-
const CUSTOMER_TYPE_ID = 'user_type';
25-
const CUSTOMER_ID = 'user_id';
24+
const USER_TYPE_ID = 'user_type';
25+
const USER_ID = 'user_id';
2626
/**#@-*/
2727

2828
/**
@@ -87,36 +87,36 @@ public function setExtensionAttributes(\Magento\GraphQl\Model\ContextInterfaceEx
8787
*/
8888
public function getUserId()
8989
{
90-
if (!$this->getData(self::CUSTOMER_ID)) {
90+
if (!$this->getData(self::USER_ID)) {
9191
$this->setUserId((int) $this->userContext->getUserId());
9292
}
93-
return (int) $this->getData(self::CUSTOMER_ID);
93+
return (int) $this->getData(self::USER_ID);
9494
}
9595

9696
/**
9797
* @inheritDoc
9898
*/
9999
public function setUserId(int $userId)
100100
{
101-
return $this->setData(self::CUSTOMER_ID, $userId);
101+
return $this->setData(self::USER_ID, $userId);
102102
}
103103

104104
/**
105105
* @inheritDoc
106106
*/
107107
public function getUserType()
108108
{
109-
if (!$this->getData(self::CUSTOMER_TYPE_ID)) {
109+
if (!$this->getData(self::USER_TYPE_ID)) {
110110
$this->setUserType($this->userContext->getUserType());
111111
}
112-
return (int) $this->getData(self::CUSTOMER_TYPE_ID);
112+
return (int) $this->getData(self::USER_TYPE_ID);
113113
}
114114

115115
/**
116116
* @inheritDoc
117117
*/
118118
public function setUserType(int $typeId)
119119
{
120-
return $this->setData(self::CUSTOMER_ID, $typeId);
120+
return $this->setData(self::USER_TYPE_ID, $typeId);
121121
}
122122
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "magento/module-graph-ql-customer",
3+
"description": "N/A",
4+
"type": "magento2-module",
5+
"version": "100.0.0-dev",
6+
"require": {
7+
"php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
8+
"magento/module-eav": "100.3.*",
9+
"magento/module-customer": "100.2.*",
10+
"magento/module-graph-ql": "100.0.*",
11+
"magento/framework": "100.3.*"
12+
},
13+
"license": [
14+
"OSL-3.0",
15+
"AFL-3.0"
16+
],
17+
"autoload": {
18+
"files": [
19+
"registration.php"
20+
],
21+
"psr-4": {
22+
"Magento\\GraphQlCustomer\\": ""
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)