File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ $ llmsTxtLink = '</llms.txt>; rel="llms-txt", </llms-full.txt>; rel="llms-full-txt" ' ;
6+ $ serviceDocLink = static fn (string $ url ): string => sprintf ('<%s>; rel="service-doc", ' , $ url ) . $ llmsTxtLink ;
7+
8+ return [
9+ 'dot_response_headers ' => [
10+ '* ' => [
11+ 'X-Powered-By ' => [
12+ 'value ' => 'Dotkernel ' ,
13+ 'overwrite ' => true ,
14+ ],
15+ 'X-Llms-Txt ' => [
16+ 'value ' => '/llms.txt ' ,
17+ 'overwrite ' => true ,
18+ ],
19+ 'Link ' => [
20+ 'value ' => $ llmsTxtLink ,
21+ 'overwrite ' => true ,
22+ ],
23+ ],
24+ 'app::index ' => [
25+ 'Link ' => [
26+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/ ' ),
27+ 'overwrite ' => true ,
28+ ],
29+ ],
30+ 'page::api ' => [
31+ 'Link ' => [
32+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/api-documentation/ ' ),
33+ 'overwrite ' => true ,
34+ ],
35+ ],
36+ 'page::admin ' => [
37+ 'Link ' => [
38+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/admin-documentation/ ' ),
39+ 'overwrite ' => true ,
40+ ],
41+ ],
42+ 'page::queue ' => [
43+ 'Link ' => [
44+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/queue-documentation/ ' ),
45+ 'overwrite ' => true ,
46+ ],
47+ ],
48+ 'page::light ' => [
49+ 'Link ' => [
50+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/light-documentation/ ' ),
51+ 'overwrite ' => true ,
52+ ],
53+ ],
54+ 'page::frontend ' => [
55+ 'Link ' => [
56+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/frontend/ ' ),
57+ 'overwrite ' => true ,
58+ ],
59+ ],
60+ 'page::wsl2 ' => [
61+ 'Link ' => [
62+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/development/v2/terminal/ ' ),
63+ 'overwrite ' => true ,
64+ ],
65+ ],
66+ 'page::architecture ' => [
67+ 'Link ' => [
68+ 'value ' => $ serviceDocLink ('https://docs.dotkernel.org/api-documentation/ ' ),
69+ 'overwrite ' => true ,
70+ ],
71+ ],
72+ ],
73+ ];
Original file line number Diff line number Diff line change @@ -46,76 +46,9 @@ $app = [
4646 ],
4747];
4848
49- $llmsTxtLink = '</llms.txt>; rel="llms-txt", </llms-full.txt>; rel="llms-full-txt"';
50- $serviceDocLink = static fn (string $url): string => sprintf('<%s>; rel="service-doc", ', $url) . $llmsTxtLink;
51-
5249return [
5350 'application' => $app,
5451 'databases' => $databases,
55- 'dot_response_headers' => [
56- '*' => [
57- 'X-Powered-By' => [
58- 'value' => $app['meta']['siteName'],
59- 'overwrite' => true,
60- ],
61- 'X-Llms-Txt' => [
62- 'value' => '/llms.txt',
63- 'overwrite' => true,
64- ],
65- 'Link' => [
66- 'value' => $llmsTxtLink,
67- 'overwrite' => true,
68- ],
69- ],
70- 'app::index' => [
71- 'Link' => [
72- 'value' => $serviceDocLink('https://docs.dotkernel.org/'),
73- 'overwrite' => true,
74- ],
75- ],
76- 'page::api' => [
77- 'Link' => [
78- 'value' => $serviceDocLink('https://docs.dotkernel.org/api-documentation/'),
79- 'overwrite' => true,
80- ],
81- ],
82- 'page::admin' => [
83- 'Link' => [
84- 'value' => $serviceDocLink('https://docs.dotkernel.org/admin-documentation/'),
85- 'overwrite' => true,
86- ],
87- ],
88- 'page::queue' => [
89- 'Link' => [
90- 'value' => $serviceDocLink('https://docs.dotkernel.org/queue-documentation/'),
91- 'overwrite' => true,
92- ],
93- ],
94- 'page::light' => [
95- 'Link' => [
96- 'value' => $serviceDocLink('https://docs.dotkernel.org/light-documentation/'),
97- 'overwrite' => true,
98- ],
99- ],
100- 'page::frontend' => [
101- 'Link' => [
102- 'value' => $serviceDocLink('https://docs.dotkernel.org/frontend/'),
103- 'overwrite' => true,
104- ],
105- ],
106- 'page::wsl2' => [
107- 'Link' => [
108- 'value' => $serviceDocLink('https://docs.dotkernel.org/development/v2/terminal/'),
109- 'overwrite' => true,
110- ],
111- ],
112- 'page::architecture' => [
113- 'Link' => [
114- 'value' => $serviceDocLink('https://docs.dotkernel.org/api-documentation/'),
115- 'overwrite' => true,
116- ],
117- ],
118- ],
11952 'doctrine' => [
12053 'connection' => [
12154 'orm_default' => [
You can’t perform that action at this time.
0 commit comments