Skip to content

Commit

Permalink
fix for #897
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Aug 9, 2022
1 parent 95f4802 commit cd78c8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api.include.php
Expand Up @@ -10289,6 +10289,7 @@ private function setTag(int $index, string $tableName) /*: void*/
use Psr\Http\Message\ServerRequestInterface;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudApi\OpenApi\OpenApiBuilder;
use Tqdev\PhpCrudApi\RequestFactory;

class OpenApiService
{
Expand All @@ -10301,7 +10302,7 @@ public function __construct(ReflectionService $reflection, array $base, array $c

public function get(ServerRequestInterface $request): OpenApiDefinition
{
return $this->builder->build($request);
return $this->builder->build(RequestFactory::fromGlobals());
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion api.php
Expand Up @@ -10289,6 +10289,7 @@ private function setTag(int $index, string $tableName) /*: void*/
use Psr\Http\Message\ServerRequestInterface;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudApi\OpenApi\OpenApiBuilder;
use Tqdev\PhpCrudApi\RequestFactory;

class OpenApiService
{
Expand All @@ -10301,7 +10302,7 @@ public function __construct(ReflectionService $reflection, array $base, array $c

public function get(ServerRequestInterface $request): OpenApiDefinition
{
return $this->builder->build($request);
return $this->builder->build(RequestFactory::fromGlobals());
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Tqdev/PhpCrudApi/OpenApi/OpenApiService.php
Expand Up @@ -5,6 +5,7 @@
use Psr\Http\Message\ServerRequestInterface;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudApi\OpenApi\OpenApiBuilder;
use Tqdev\PhpCrudApi\RequestFactory;

class OpenApiService
{
Expand All @@ -17,6 +18,6 @@ public function __construct(ReflectionService $reflection, array $base, array $c

public function get(ServerRequestInterface $request): OpenApiDefinition
{
return $this->builder->build($request);
return $this->builder->build(RequestFactory::fromGlobals());
}
}

0 comments on commit cd78c8c

Please sign in to comment.