|
3 | 3 | namespace RonasIT\Support\AutoDoc\Services; |
4 | 4 |
|
5 | 5 | use Illuminate\Container\Container; |
| 6 | +use Illuminate\Http\Request; |
6 | 7 | use Illuminate\Http\Testing\File; |
7 | 8 | use Illuminate\Support\Arr; |
8 | 9 | use Illuminate\Support\Str; |
9 | 10 | use ReflectionClass; |
10 | | -use Illuminate\Http\Request; |
11 | | -use RonasIT\Support\AutoDoc\Drivers\BaseDriver; |
| 11 | +use RonasIT\Support\AutoDoc\Exceptions\InvalidDriverClassException; |
12 | 12 | use RonasIT\Support\AutoDoc\Exceptions\LegacyConfigException; |
| 13 | +use RonasIT\Support\AutoDoc\Exceptions\SwaggerDriverClassNotFoundException; |
13 | 14 | use RonasIT\Support\AutoDoc\Exceptions\WrongSecurityConfigException; |
| 15 | +use RonasIT\Support\AutoDoc\Interfaces\SwaggerDriverInterface; |
14 | 16 | use RonasIT\Support\AutoDoc\Traits\GetDependenciesTrait; |
15 | 17 | use Symfony\Component\HttpFoundation\Response; |
16 | | -use RonasIT\Support\AutoDoc\Exceptions\InvalidDriverClassException; |
17 | | -use RonasIT\Support\AutoDoc\Exceptions\SwaggerDriverClassNotFoundException; |
18 | 18 |
|
19 | 19 | /** |
20 | | - * @property BaseDriver $driver |
| 20 | + * @property SwaggerDriverInterface $driver |
21 | 21 | */ |
22 | 22 | class SwaggerService |
23 | 23 | { |
@@ -97,7 +97,7 @@ protected function setDriver() |
97 | 97 | $this->driver = app($className); |
98 | 98 | } |
99 | 99 |
|
100 | | - if (!$this->driver instanceof BaseDriver) { |
| 100 | + if (!$this->driver instanceof SwaggerDriverInterface) { |
101 | 101 | throw new InvalidDriverClassException($driver); |
102 | 102 | } |
103 | 103 | } |
@@ -653,7 +653,7 @@ public function getDocFileContent() |
653 | 653 | $paths = array_keys($fileContent['paths']); |
654 | 654 |
|
655 | 655 | foreach ($paths as $path) { |
656 | | - $additionalDocPath = $fileContent['paths'][$path]; |
| 656 | + $additionalDocPath = $fileContent['paths'][$path]; |
657 | 657 |
|
658 | 658 | if (empty($documentation['paths'][$path])) { |
659 | 659 | $documentation['paths'][$path] = $additionalDocPath; |
|
0 commit comments