-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement configuration aware interface
- Loading branch information
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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; | ||
|
||
|