Skip to content

Commit

Permalink
implement configuration aware interface
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 13, 2024
1 parent ff56672 commit bca5999
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Generator/Spec/ApiAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@

namespace PSX\Api\Generator\Spec;

use PSX\Api\Generator\ConfigurationAwareInterface;
use PSX\Api\GeneratorInterface;

/**
* @author Christoph Kappestein <[email protected]>
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link https://phpsx.org
*/
abstract class ApiAbstract implements GeneratorInterface, ConfigurationAwareInterface
abstract class ApiAbstract implements GeneratorInterface
{
public const FLOW_AUTHORIZATION_CODE = 0;
public const FLOW_IMPLICIT = 1;
Expand Down
4 changes: 3 additions & 1 deletion src/Generator/Spec/OpenAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

namespace PSX\Api\Generator\Spec;

use PSX\Api\Generator\ConfigurationAwareInterface;
use PSX\Api\Generator\ConfigurationTrait;
use PSX\Api\Operation\Argument;
use PSX\Api\OperationInterface;
Expand Down Expand Up @@ -62,11 +63,12 @@
/**
* Generates an OpenAPI 3.0 representation of an API resource
*
* @see https://www.openapis.org/
* @author Christoph Kappestein <[email protected]>
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link https://phpsx.org
*/
class OpenAPI extends ApiAbstract
class OpenAPI extends ApiAbstract implements ConfigurationAwareInterface
{
use ConfigurationTrait;

Expand Down
5 changes: 3 additions & 2 deletions src/Generator/Spec/TypeAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

namespace PSX\Api\Generator\Spec;

use PSX\Api\Generator\ConfigurationAwareInterface;
use PSX\Api\Generator\ConfigurationTrait;
use PSX\Api\GeneratorInterface;
use PSX\Api\SecurityInterface;
Expand All @@ -32,12 +33,12 @@
/**
* TypeAPI
*
* @see https://typeschema.org/
* @see https://typeapi.org/
* @author Christoph Kappestein <[email protected]>
* @license http://www.apache.org/licenses/LICENSE-2.0
* @link https://phpsx.org
*/
class TypeAPI implements GeneratorInterface
class TypeAPI implements GeneratorInterface, ConfigurationAwareInterface
{
use ConfigurationTrait;

Expand Down

0 comments on commit bca5999

Please sign in to comment.