Skip to content

Commit cfc5f7b

Browse files
committed
commenting service params reference
1 parent 37215ee commit cfc5f7b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Spec/Swagger2.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Swagger2 extends Spec
99
/**
1010
* @var array
1111
*/
12-
private array $serviceParams = [];
12+
// private array $serviceParams = [];
1313

1414
/**
1515
* @return string
@@ -138,7 +138,7 @@ public function getServices()
138138
public function getMethods($service)
139139
{
140140
$list = [];
141-
$serviceParams= [];
141+
// $serviceParams= [];
142142
$security = $this->getAttribute('securityDefinitions', []);
143143
$paths = $this->getAttribute('paths', []);
144144

@@ -222,9 +222,9 @@ public function getMethods($service)
222222

223223
$param['default'] = (is_array($param['default'])) ? json_encode($param['default']) : $param['default'];
224224

225-
if(($parameter['x-global'] ?? false)) {
226-
$serviceParams[$param['name']] = $param;
227-
}
225+
// if(($parameter['x-global'] ?? false)) {
226+
// $serviceParams[$param['name']] = $param;
227+
// }
228228

229229
switch ($parameter['in']) {
230230
case 'header':
@@ -282,7 +282,7 @@ public function getMethods($service)
282282
}
283283
}
284284

285-
$this->serviceParams[$service] = $serviceParams;
285+
// $this->serviceParams[$service] = $serviceParams;
286286

287287
return $list;
288288
}

0 commit comments

Comments
 (0)