Skip to content

Commit

Permalink
Make sure things are working (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Jul 15, 2021
1 parent 6c719f6 commit 04d8f76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Controller/WordpressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ final class WordpressController extends AbstractController
private $wordpress;
private $indexTemplate;
private $pageTemplate;
private $allowInvalidate;

public function __construct(Wordpress $wordpress, string $indexTemplate, string $pageTemplate, bool $allowInvalidate)
public function __construct(Wordpress $wordpress, string $indexTemplate, string $pageTemplate)
{
$this->wordpress = $wordpress;
$this->indexTemplate = $indexTemplate;
$this->pageTemplate = $pageTemplate;
$this->allowInvalidate = $allowInvalidate;
}

public function index()
Expand Down
3 changes: 2 additions & 1 deletion src/Resources/config/controller.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
services:
Happyr\WordpressBundle\Controller\WordpressController:
autowire: true
autoconfigure: true
arguments: ['@Happyr\WordpressBundle\Service\Wordpress', ~, ~, ~]
tags: ['controller.service_arguments']
2 changes: 1 addition & 1 deletion src/Service/LocalImageUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function uploadImage(string $url): string
// Check if file already exists
if (!\file_exists($path)) {
// Save the file
\mkdir(dirname($path));
@\mkdir(\dirname($path));
\file_put_contents($path, $file);
}

Expand Down

0 comments on commit 04d8f76

Please sign in to comment.