Skip to content

Commit

Permalink
rename routes provider to generator
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 18, 2022
1 parent 040861b commit a535275
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 77 deletions.
134 changes: 67 additions & 67 deletions spec/backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,73 @@
"Event_Subscription_Update": {
"$extends": "Event_Subscription"
},
"Generator_Index_Providers": {
"type": "object",
"properties": {
"providers": {
"type": "array",
"items": {
"$ref": "Generator_Index_Provider"
}
}
}
},
"Generator_Index_Provider": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"class": {
"type": "string"
}
}
},
"Generator_Provider": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"config": {
"$ref": "Generator_Provider_Config"
}
}
},
"Generator_Provider_Config": {
"type": "object",
"additionalProperties": true,
"maxProperties": 16
},
"Generator_Provider_Changelog": {
"type": "object",
"properties": {
"schemas": {
"type": "array",
"items": {
"$ref": "Schema"
}
},
"actions": {
"type": "array",
"items": {
"$ref": "Action"
}
},
"routes": {
"type": "array",
"items": {
"$ref": "Route"
}
}
}
},
"Log": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1273,73 +1340,6 @@
"Route_Update": {
"$extends": "Route"
},
"Route_Index_Providers": {
"type": "object",
"properties": {
"providers": {
"type": "array",
"items": {
"$ref": "Route_Index_Provider"
}
}
}
},
"Route_Index_Provider": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"class": {
"type": "string"
}
}
},
"Route_Provider": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"scopes": {
"type": "array",
"items": {
"type": "string"
}
},
"config": {
"$ref": "Route_Provider_Config"
}
}
},
"Route_Provider_Config": {
"type": "object",
"additionalProperties": true,
"maxProperties": 16
},
"Route_Provider_Changelog": {
"type": "object",
"properties": {
"schemas": {
"type": "array",
"items": {
"$ref": "Schema"
}
},
"actions": {
"type": "array",
"items": {
"$ref": "Action"
}
},
"routes": {
"type": "array",
"items": {
"$ref": "Route"
}
}
}
},
"Schema": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Fusio\Model\Backend;


class Route_Index_Provider implements \JsonSerializable
class Generator_Index_Provider implements \JsonSerializable
{
protected ?string $name = null;
protected ?string $class = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
namespace Fusio\Model\Backend;


class Route_Index_Providers implements \JsonSerializable
class Generator_Index_Providers implements \JsonSerializable
{
/**
* @var array<Route_Index_Provider>|null
* @var array<Generator_Index_Provider>|null
*/
protected ?array $providers = null;
/**
* @param array<Route_Index_Provider>|null $providers
* @param array<Generator_Index_Provider>|null $providers
*/
public function setProviders(?array $providers) : void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
namespace Fusio\Model\Backend;


class Route_Provider implements \JsonSerializable
class Generator_Provider implements \JsonSerializable
{
protected ?string $path = null;
/**
* @var array<string>|null
*/
protected ?array $scopes = null;
protected ?Route_Provider_Config $config = null;
protected ?Generator_Provider_Config $config = null;
public function setPath(?string $path) : void
{
$this->path = $path;
Expand All @@ -32,11 +32,11 @@ public function getScopes() : ?array
{
return $this->scopes;
}
public function setConfig(?Route_Provider_Config $config) : void
public function setConfig(?Generator_Provider_Config $config) : void
{
$this->config = $config;
}
public function getConfig() : ?Route_Provider_Config
public function getConfig() : ?Generator_Provider_Config
{
return $this->config;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Fusio\Model\Backend;


class Route_Provider_Changelog implements \JsonSerializable
class Generator_Provider_Changelog implements \JsonSerializable
{
/**
* @var array<Schema>|null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @extends \PSX\Record\Record<mixed>
*/
#[MaxProperties(16)]
class Route_Provider_Config extends \PSX\Record\Record
class Generator_Provider_Config extends \PSX\Record\Record
{
}

0 comments on commit a535275

Please sign in to comment.