File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use Psr \SimpleCache \CacheInterface ;
56use Sunrise \Http \Router \Loader \DescriptorLoader ;
67use Sunrise \Http \Router \Loader \DescriptorLoaderInterface ;
78
1112
1213return [
1314 'router.descriptor_loader.resources ' => [],
14- 'router.descriptor_loader.cache ' => null ,
15+ 'router.descriptor_loader.cache ' => get (CacheInterface::class) ,
1516
1617 'router.loaders ' => add ([
1718 get (DescriptorLoaderInterface::class),
Original file line number Diff line number Diff line change 1515
1616use function DI \create ;
1717use function DI \get ;
18+ use function DI \string ;
1819
1920return [
2021 'router.openapi.initial_document ' => [
2122 'openapi ' => OpenApiConfiguration::VERSION ,
22- 'info ' => [
23- 'title ' => 'API ' ,
24- 'version ' => '1.0.0 ' ,
25- ],
23+ 'info ' => get ('router.openapi.initial_document.info ' ),
24+ ],
25+
26+ 'router.openapi.initial_document.info ' => [
27+ 'title ' => string ('{app.name}@{app.env} ' ),
28+ 'version ' => get ('app.version ' ),
2629 ],
2730
2831 'router.openapi.initial_operation ' => [
You can’t perform that action at this time.
0 commit comments