Skip to content

Commit 1a3e607

Browse files
committed
Img path fix, local.php.dist update, and applied recommendations for handlers
1 parent af8c39a commit 1a3e607

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

config/autoload/local.php.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
declare(strict_types=1);
1111

12-
$baseUrl = 'light-blog.localhost';
12+
$baseUrl = 'http://dotkernel.com.localhost';
1313
$databases = [
1414
'default' => [
15-
'host' => 'db_host',
16-
'dbname' => 'db_name',
17-
'user' => 'db_user',
18-
'password' => 'db_password',
15+
'host' => 'localhost',
16+
'dbname' => '',
17+
'user' => '',
18+
'password' => '',
1919
'port' => 3306,
2020
'driver' => 'pdo_mysql',
2121
'collate' => 'utf8mb4_general_ci',

src/App/templates/layout/default.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,20 +86,20 @@
8686
</p>
8787
<div class="d-flex align-items-center gap-3">
8888
<a href="https://github.com/dotkernel" target="_blank" rel="noopener">
89-
<img src="https://www.dotkernel.com/wp-content/uploads/2025/01/icon_git.svg" alt="GitHub" style="height: 24px; width: auto;">
89+
<img src="/uploads/2025/01/icon_git.svg" alt="GitHub" style="height: 24px; width: auto;">
9090
</a>
9191
<a href="https://dotkernel.slack.com/" target="_blank" rel="noopener">
92-
<img src="https://www.dotkernel.com/wp-content/uploads/2025/01/icon_slack.svg" alt="Slack" style="height: 24px; width: auto;">
92+
<img src="/uploads/2025/01/icon_slack.svg" alt="Slack" style="height: 24px; width: auto;">
9393
</a>
9494
<a href="https://www.dotkernel.com/feed/" target="_blank" rel="noopener">
95-
<img src="https://www.dotkernel.com/wp-content/uploads/2025/01/icon_feed.svg" alt="RSS Feed" style="height: 24px; width: auto;">
95+
<img src="/uploads/2025/01/icon_feed.svg" alt="RSS Feed" style="height: 24px; width: auto;">
9696
</a>
9797
</div>
9898
</div>
9999

100100
<div class="col-md-6 text-md-end">
101101
<a href="https://jb.gg/OpenSourceSupport" target="_blank" rel="noopener" class="d-inline-block">
102-
<img src="https://www.dotkernel.com/wp-content/uploads/2025/03/jetbrains-mono-white.svg" alt="JetBrains" style="width: 150px; height: auto;">
102+
<img src="/uploads/2025/03/jetbrains-mono-white.svg" alt="JetBrains" style="width: 150px; height: auto;">
103103
</a>
104104
</div>
105105
</div>

src/Blog/src/Handler/GetCategoryResourceHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public function handle(ServerRequestInterface $request): ResponseInterface
4343
'categoryArticles' => $categoryArticles,
4444
]
4545
);
46+
return new HtmlResponse($html);
4647
} catch (Throwable $e) {
4748
return $this->notFound($categories);
4849
}
49-
return new HtmlResponse($html);
5050
}
5151

5252
/**

src/Blog/src/Handler/GetPostResourceHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ public function handle(ServerRequestInterface $request): ResponseInterface
4343
'categories' => $categories,
4444
]
4545
);
46+
return new HtmlResponse($html);
4647
} catch (Throwable $e) {
4748
return $this->notFound($categories);
4849
}
49-
50-
return new HtmlResponse($html);
5150
}
5251

5352
/**

0 commit comments

Comments
 (0)