Skip to content

Commit 04d8f76

Browse files
authored
Make sure things are working (#9)
1 parent 6c719f6 commit 04d8f76

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Controller/WordpressController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ final class WordpressController extends AbstractController
1919
private $wordpress;
2020
private $indexTemplate;
2121
private $pageTemplate;
22-
private $allowInvalidate;
2322

24-
public function __construct(Wordpress $wordpress, string $indexTemplate, string $pageTemplate, bool $allowInvalidate)
23+
public function __construct(Wordpress $wordpress, string $indexTemplate, string $pageTemplate)
2524
{
2625
$this->wordpress = $wordpress;
2726
$this->indexTemplate = $indexTemplate;
2827
$this->pageTemplate = $pageTemplate;
29-
$this->allowInvalidate = $allowInvalidate;
3028
}
3129

3230
public function index()

src/Resources/config/controller.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
services:
22
Happyr\WordpressBundle\Controller\WordpressController:
3+
autowire: true
4+
autoconfigure: true
35
arguments: ['@Happyr\WordpressBundle\Service\Wordpress', ~, ~, ~]
4-
tags: ['controller.service_arguments']

src/Service/LocalImageUploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function uploadImage(string $url): string
4242
// Check if file already exists
4343
if (!\file_exists($path)) {
4444
// Save the file
45-
\mkdir(dirname($path));
45+
@\mkdir(\dirname($path));
4646
\file_put_contents($path, $file);
4747
}
4848

0 commit comments

Comments
 (0)