File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 99
1010declare(strict_types=1);
1111
12- $baseUrl = 'http ://dotkernel.com.localhost ';
12+ $baseUrl = 'https ://www. dotkernel.com';
1313$databases = [
1414 'default' => [
1515 'host' => 'localhost',
@@ -21,10 +21,25 @@ $databases = [
2121 'collate' => 'utf8mb4_general_ci',
2222 ],
2323];
24- return [
25- 'application' => [
26- 'url' => $baseUrl,
24+
25+ $app = [
26+ 'baseUrl' => $baseUrl,
27+ 'meta' => [
28+ 'title' => 'Dotkernel | Headless Platform for modern web application',
29+ 'description' => 'Dotkernel is a Headless Platform for building modern web applications '
30+ . 'using a collection of applications (skeletons).',
31+ 'image' => $baseUrl . '/uploads/opengraph/dotkernel.png',
32+ 'type' => 'website',
33+ 'siteName' => 'Dotkernel Light',
34+ 'locale' => 'en_US',
35+ 'url' => $baseUrl,
36+ 'twitterCard' => 'summary_large_image',
37+ 'twitterSite' => '@dotkernel',
2738 ],
39+ ];
40+
41+ return [
42+ 'application' => $app,
2843 'databases' => $databases,
2944 'doctrine' => [
3045 'connection' => [
@@ -33,12 +48,18 @@ return [
3348 ],
3449 ],
3550 ],
51+ 'feed' => [
52+ 'path' => realpath(__DIR__ . '/../../public/feed.xml'),
53+ ],
3654 'routes' => [
3755 'page' => [
38- 'about' => 'about',
39- 'who-we-are' => 'who-we-are',
4056 'contact' => 'contact',
4157 'dotkernel-packages-oss-lifecycle' => 'dotkernel-packages-oss-lifecycle',
4258 ],
4359 ],
60+ 'twig' => [
61+ 'globals' => [
62+ 'app' => $app,
63+ ],
64+ ],
4465];
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ Dotkernel is an open-source project created and led by the dev team at Apidemia
8888- GitHub organization: https://github.com/dotkernel
8989- Blog: https://www.dotkernel.com/blog/
9090- Categories: https://www.dotkernel.com/categories/
91- - Contact: {{base_url}} /contact/
91+ - Contact: https://www.dotkernel.com /contact/
9292
9393
9494<!-- ============================================================ -->
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ public function __invoke(ContainerInterface $container): FeedGenerator
2323 return new FeedGenerator (
2424 $ postRepository ,
2525 $ config ['feed ' ]['path ' ],
26- rtrim ($ config ['application ' ]['url ' ] ?? '' , '/ ' ) . '/ ' ,
27- $ config ['app ' ]['meta ' ]['title ' ] ?? '' ,
28- $ config ['app ' ]['meta ' ]['description ' ] ?? '' ,
29- $ config ['app ' ]['meta ' ]['image ' ] ?? '' ,
26+ rtrim ($ config ['application ' ]['baseUrl ' ] ?? '' , '/ ' ) . '/ ' ,
27+ $ config ['application ' ]['meta ' ]['title ' ] ?? '' ,
28+ $ config ['application ' ]['meta ' ]['description ' ] ?? '' ,
29+ $ config ['application ' ]['meta ' ]['image ' ] ?? '' ,
3030 );
3131 }
3232}
You can’t perform that action at this time.
0 commit comments