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..6772dc2 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://www.dotkernel.com'; $databases = [ 'default' => [ 'host' => 'localhost', @@ -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', + '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/ 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'] ?? '', ); } }