$this->getProcessors()]; $annotation = \Swagger\scan($projectPath, $options); return json_decode(json_encode($annotation)); }, $overwrite); } /** * If set, the describer will try to complete paths and create * implicit operations. */ public function setOperationResolver(OperationResolver $operationResolver) { $this->operationResolver = $operationResolver; } private function getProcessors(): array { $processors = [ new AddDefaults(), new ModelRegister($this->modelRegistry), ]; if (null !== $this->operationResolver) { $processors[] = $this->operationResolver; } return array_merge($processors, Analysis::processors()); } }