Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
OpenApiPathBuilder example
private
OpenApi3Generator
$customApiGenerator
;
private
ShopwareBundleWithName
$customBundleSchemas
;
private
StaticDefinitionInstanceRegistry
$definitionRegistry
;
protected
function
setUp
(
)
: void
{
$this
->generator =
new
OpenApi3Generator
(
new
OpenApiSchemaBuilder
(
'0.1.0'
)
,
new
OpenApiPathBuilder
(
)
,
new
OpenApiDefinitionSchemaBuilder
(
)
,
[
'Framework' =>
[
'path' => __DIR__ . '/_fixtures'
]
,
]
,
new
BundleSchemaPathCollection
(
[
]
)
)
;
$this
->customBundleSchemas =
new
ShopwareBundleWithName
(
)
;
$customBundlePathCollection
=
new
BundleSchemaPathCollection
(
[
$this
->customBundleSchemas
]
)
;
$this
->customApiGenerator =
new
OpenApi3Generator
(