Skip to content

Commit

Permalink
use tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vsheverov committed Oct 31, 2024
1 parent 260ef76 commit 5f65896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final class BlogController extends AbstractController
#[Cache(smaxage: 10)]
public function index(Request $request, int $page, string $_format, PostRepository $posts, TagRepository $tags): Response
{
$tag = new \stdClass();
$tag = new Tag('');

if ($request->query->has('tag')) {
$tag = $tags->findOneBy(['name' => $request->query->get('tag')]);
Expand Down

0 comments on commit 5f65896

Please sign in to comment.