First implementation of plugin architecture

- Split route processing into stages: metadata, bodyParameters, queryParameters, responses
- Provide tool to fetch route docblocks (with caching)
This commit is contained in:
shalvah
2019-09-01 23:40:28 +01:00
parent b7bc937e2d
commit 67c61fef8d
6 changed files with 221 additions and 110 deletions

View File

@@ -1,5 +1,7 @@
<?php
use Mpociot\ApiDoc\Strategies\Metadata\GetFromDocBlocks;
return [
/*
@@ -179,6 +181,21 @@ return [
],
],
'strategies' => [
'metadata' => [
GetFromDocBlocks::class,
],
'bodyParameters' => [
],
'queryParameters' => [
],
'responses' => [
],
],
/*
* Custom logo path. The logo will be copied from this location
* during the generate process. Set this to false to use the default logo.