Skip to content

Commit 35d2b7e

Browse files
authored
Merge pull request #46 from dotkernel/issue-40
Fix $baseUrl to have only one for feed generation and update
2 parents bc11244 + c10f6f0 commit 35d2b7e

4 files changed

Lines changed: 32 additions & 44 deletions

File tree

config/autoload/app.global.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

config/autoload/local.php.dist

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
declare(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
];

public/llms-full.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
<!-- ============================================================ -->

src/App/src/Factory/FeedGeneratorFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)