Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions config/autoload/app.global.php

This file was deleted.

33 changes: 27 additions & 6 deletions config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

declare(strict_types=1);

$baseUrl = 'http://dotkernel.com.localhost';
$baseUrl = 'https://www.dotkernel.com';
$databases = [
'default' => [
'host' => 'localhost',
Expand All @@ -21,10 +21,25 @@ $databases = [
'collate' => 'utf8mb4_general_ci',
],
];
return [
'application' => [
'url' => $baseUrl,

$app = [
'baseUrl' => $baseUrl,
'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',
Comment thread
alexmerlin marked this conversation as resolved.
'locale' => 'en_US',
'url' => $baseUrl,
'twitterCard' => 'summary_large_image',
'twitterSite' => '@dotkernel',
],
];

return [
'application' => $app,
'databases' => $databases,
'doctrine' => [
'connection' => [
Expand All @@ -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,
],
],
];
2 changes: 1 addition & 1 deletion public/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/


<!-- ============================================================ -->
Expand Down
8 changes: 4 additions & 4 deletions src/App/src/Factory/FeedGeneratorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? '',
);
}
}