File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
app/code/Magento/GraphQl/Model/Query/Resolver
lib/internal/Magento/Framework Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 16
16
* @deprecated 100.3.3
17
17
* @see \Magento\GraphQl\Model\Query\Context
18
18
*/
19
- class Context extends \Magento \Framework \Model \AbstractExtensibleModel implements ContextInterface,
19
+ class Context extends \Magento \Framework \Model \AbstractExtensibleModel implements
20
+ ContextInterface,
20
21
ResetAfterRequestInterface
21
22
{
22
23
/**#@+
Original file line number Diff line number Diff line change @@ -129,6 +129,13 @@ public function setObjectManager(ObjectManagerInterface $objectManager) : void
129
129
$ this ->objectManager = $ objectManager ;
130
130
}
131
131
132
+ /**
133
+ * Checks if the object is in the class list uses inheritance (via instanceof)
134
+ *
135
+ * @param object $object
136
+ * @return bool
137
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
138
+ */
132
139
public function isObjectInClassList (object $ object )
133
140
{
134
141
foreach ($ this ->classList as $ key => $ value ) {
@@ -145,6 +152,7 @@ public function isObjectInClassList(object $object)
145
152
* @param object $instance
146
153
* @return void
147
154
* @throws \ReflectionException
155
+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
148
156
*/
149
157
private function resetStateWithReflection (object $ instance )
150
158
{
@@ -158,6 +166,14 @@ private function resetStateWithReflection(object $instance)
158
166
}
159
167
}
160
168
}
169
+
170
+ /**
171
+ * State reset using reflection using specific className
172
+ *
173
+ * @param object $instance
174
+ * @param string $className
175
+ * @return void
176
+ */
161
177
private function resetStateWithReflectionByClassName (object $ instance , string $ className )
162
178
{
163
179
$ classResetValues = $ this ->classList [$ className ] ?? [];
Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
9
9
10
- class QueryParamsResolver extends \Magento \Framework \DataObject implements QueryParamsResolverInterface,
10
+ class QueryParamsResolver extends \Magento \Framework \DataObject implements
11
+ QueryParamsResolverInterface,
11
12
ResetAfterRequestInterface
12
13
{
13
14
/**
You can’t perform that action at this time.
0 commit comments