api de gestion de ticket, basé sur php-crud-api. Le but est de décorrélé les outils de gestion des données, afin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OpenApiService.php 436B

123456789101112131415161718192021
  1. <?php
  2. namespace Tqdev\PhpCrudApi\OpenApi;
  3. use Tqdev\PhpCrudApi\Column\ReflectionService;
  4. use Tqdev\PhpCrudApi\OpenApi\OpenApiBuilder;
  5. class OpenApiService
  6. {
  7. private $builder;
  8. public function __construct(ReflectionService $reflection, array $base)
  9. {
  10. $this->builder = new OpenApiBuilder($reflection, $base);
  11. }
  12. public function get(): OpenApiDefinition
  13. {
  14. return $this->builder->build();
  15. }
  16. }