From 2ef95fd86638b30b95942903aae04706b084b8e7 Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Fri, 31 Jul 2026 19:26:55 +0300 Subject: [PATCH 1/6] Fix $baseUrl to have only one for feed generation and update --- config/autoload/app.global.php | 33 --------------------------------- config/autoload/local.php.dist | 33 +++++++++++++++++++++++++++------ public/llms-full.txt | 2 +- 3 files changed, 28 insertions(+), 40 deletions(-) delete mode 100644 config/autoload/app.global.php diff --git a/config/autoload/app.global.php b/config/autoload/app.global.php deleted file mode 100644 index 441f2b4..0000000 --- a/config/autoload/app.global.php +++ /dev/null @@ -1,33 +0,0 @@ - $baseUrl, - 'name' => 'Dotkernel Light | PSR-15 compliant application', - 'meta' => [ - 'title' => 'Dotkernel | Headless Platform for modern web application', - 'description' => 'Dotkernel is a Headless Platform for building modern web applications - using a collection of applications (skeletons).', - 'image' => $baseUrl . 'uploads/opengraph/dotkernel.png', - 'type' => 'website', - 'siteName' => 'Dotkernel Light', - 'locale' => 'en_US', - 'url' => $baseUrl, - 'twitterCard' => 'summary_large_image', - 'twitterSite' => '@dotkernel', - ], -]; - -return [ - 'app' => $app, - 'feed' => [ - 'path' => realpath(__DIR__ . '/../../public/feed.xml'), - ], - 'twig' => [ - 'globals' => [ - 'app' => $app, - ], - ], -]; diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 5d11c64..59045c6 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -9,7 +9,7 @@ declare(strict_types=1); -$baseUrl = 'http://dotkernel.com.localhost'; +$baseUrl = 'https://dotkernel.com/'; $databases = [ 'default' => [ 'host' => 'localhost', @@ -21,10 +21,25 @@ $databases = [ 'collate' => 'utf8mb4_general_ci', ], ]; -return [ - 'application' => [ - 'url' => $baseUrl, + +$app = [ + 'baseUrl' => $baseUrl, + 'name' => 'Dotkernel Light | PSR-15 compliant application', + 'meta' => [ + 'title' => 'Dotkernel | Headless Platform for modern web application', + 'description' => 'Dotkernel is a Headless Platform for building modern web applications using a collection of applications (skeletons).', + 'image' => $baseUrl . 'uploads/opengraph/dotkernel.png', + 'type' => 'website', + 'siteName' => 'Dotkernel Light', + 'locale' => 'en_US', + 'url' => $baseUrl, + 'twitterCard' => 'summary_large_image', + 'twitterSite' => '@dotkernel', ], +]; + +return [ + 'application' => $app, 'databases' => $databases, 'doctrine' => [ 'connection' => [ @@ -33,12 +48,18 @@ return [ ], ], ], + 'feed' => [ + 'path' => realpath(__DIR__ . '/../../public/feed.xml'), + ], 'routes' => [ 'page' => [ - 'about' => 'about', - 'who-we-are' => 'who-we-are', 'contact' => 'contact', 'dotkernel-packages-oss-lifecycle' => 'dotkernel-packages-oss-lifecycle', ], ], + 'twig' => [ + 'globals' => [ + 'app' => $app, + ], + ], ]; diff --git a/public/llms-full.txt b/public/llms-full.txt index 42e5120..5b13938 100644 --- a/public/llms-full.txt +++ b/public/llms-full.txt @@ -88,7 +88,7 @@ Dotkernel is an open-source project created and led by the dev team at Apidemia - GitHub organization: https://github.com/dotkernel - Blog: https://www.dotkernel.com/blog/ - Categories: https://www.dotkernel.com/categories/ -- Contact: {{base_url}}/contact/ +- Contact: https://www.dotkernel.com/contact/ From 30322ad25d938b3391218f5d95e6f13134dabae0 Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Fri, 31 Jul 2026 19:35:41 +0300 Subject: [PATCH 2/6] cs-fix --- config/autoload/local.php.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 59045c6..4836048 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -57,7 +57,7 @@ return [ 'dotkernel-packages-oss-lifecycle' => 'dotkernel-packages-oss-lifecycle', ], ], - 'twig' => [ + 'twig' => [ 'globals' => [ 'app' => $app, ], From 918f399e596da3efca7c9eb32f04809db74a3944 Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Fri, 31 Jul 2026 19:59:16 +0300 Subject: [PATCH 3/6] Updated in FeedGeneratorFactory to use right key --- config/autoload/local.php.dist | 2 +- src/App/src/Factory/FeedGeneratorFactory.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 4836048..87550c7 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -22,7 +22,7 @@ $databases = [ ], ]; -$app = [ +$app = [ 'baseUrl' => $baseUrl, 'name' => 'Dotkernel Light | PSR-15 compliant application', 'meta' => [ diff --git a/src/App/src/Factory/FeedGeneratorFactory.php b/src/App/src/Factory/FeedGeneratorFactory.php index 7b5be61..a05087a 100644 --- a/src/App/src/Factory/FeedGeneratorFactory.php +++ b/src/App/src/Factory/FeedGeneratorFactory.php @@ -23,10 +23,10 @@ public function __invoke(ContainerInterface $container): FeedGenerator return new FeedGenerator( $postRepository, $config['feed']['path'], - rtrim($config['application']['url'] ?? '', '/') . '/', - $config['app']['meta']['title'] ?? '', - $config['app']['meta']['description'] ?? '', - $config['app']['meta']['image'] ?? '', + rtrim($config['application']['baseUrl'] ?? '', '/') . '/', + $config['application']['meta']['title'] ?? '', + $config['application']['meta']['description'] ?? '', + $config['application']['meta']['image'] ?? '', ); } } From 27637a53361db38663795026eade72081274a155 Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Fri, 31 Jul 2026 20:27:22 +0300 Subject: [PATCH 4/6] Eliminated app name --- config/autoload/local.php.dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 87550c7..44988f0 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -24,10 +24,10 @@ $databases = [ $app = [ 'baseUrl' => $baseUrl, - 'name' => 'Dotkernel Light | PSR-15 compliant application', 'meta' => [ 'title' => 'Dotkernel | Headless Platform for modern web application', - 'description' => 'Dotkernel is a Headless Platform for building modern web applications using a collection of applications (skeletons).', + 'description' => 'Dotkernel is a Headless Platform for building modern web applications ' + . 'using a collection of applications (skeletons).', 'image' => $baseUrl . 'uploads/opengraph/dotkernel.png', 'type' => 'website', 'siteName' => 'Dotkernel Light', From ef6f0f50c58c6e82bbe0ed832da9a6b2c507d908 Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Fri, 31 Jul 2026 20:49:14 +0300 Subject: [PATCH 5/6] I checked everywhere and fixed --- config/autoload/local.php.dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 44988f0..47b7d7f 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -9,7 +9,7 @@ declare(strict_types=1); -$baseUrl = 'https://dotkernel.com/'; +$baseUrl = 'https://dotkernel.com'; $databases = [ 'default' => [ 'host' => 'localhost', @@ -28,7 +28,7 @@ $app = [ 'title' => 'Dotkernel | Headless Platform for modern web application', 'description' => 'Dotkernel is a Headless Platform for building modern web applications ' . 'using a collection of applications (skeletons).', - 'image' => $baseUrl . 'uploads/opengraph/dotkernel.png', + 'image' => $baseUrl . '/uploads/opengraph/dotkernel.png', 'type' => 'website', 'siteName' => 'Dotkernel Light', 'locale' => 'en_US', From c10f6f014d33e40e414ee595d115bf1acf8cac73 Mon Sep 17 00:00:00 2001 From: OStefan2001 Date: Fri, 31 Jul 2026 21:16:44 +0300 Subject: [PATCH 6/6] I checked everywhere and fixed --- config/autoload/local.php.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/autoload/local.php.dist b/config/autoload/local.php.dist index 47b7d7f..6772dc2 100644 --- a/config/autoload/local.php.dist +++ b/config/autoload/local.php.dist @@ -9,7 +9,7 @@ declare(strict_types=1); -$baseUrl = 'https://dotkernel.com'; +$baseUrl = 'https://www.dotkernel.com'; $databases = [ 'default' => [ 'host' => 'localhost',