Skip to content

Commit

Permalink
Merge pull request #12 from bolt/missing-article-config
Browse files Browse the repository at this point in the history
Add missing $articleConfig
  • Loading branch information
bobdenotter authored Oct 20, 2020
2 parents 9b29a73 + f1ceeb3 commit 4e8932f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Controller/Images.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Bolt\Article\Controller;

use Bolt\Article\ArticleConfig;
use Bolt\Configuration\Config;
use Bolt\Controller\Backend\Async\AsyncZoneInterface;
use Bolt\Controller\CsrfTrait;
Expand Down Expand Up @@ -36,12 +37,16 @@ class Images implements AsyncZoneInterface
/** @var ThumbnailHelper */
private $thumbnailHelper;

public function __construct(Config $config, CsrfTokenManagerInterface $csrfTokenManager, RequestStack $requestStack, UrlGeneratorInterface $urlGenerator, ThumbnailHelper $thumbnailHelper)
/** @var ArticleConfig */
private $articleConfig;

public function __construct(Config $config, CsrfTokenManagerInterface $csrfTokenManager, RequestStack $requestStack, UrlGeneratorInterface $urlGenerator, ThumbnailHelper $thumbnailHelper, ArticleConfig $articleConfig)
{
$this->config = $config;
$this->csrfTokenManager = $csrfTokenManager;
$this->request = $requestStack->getCurrentRequest();
$this->thumbnailHelper = $thumbnailHelper;
$this->articleConfig = $articleConfig;
}

/**
Expand Down

0 comments on commit 4e8932f

Please sign in to comment.