Skip to content

Commit

Permalink
add injector for ContentDataProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
cirk2 committed Oct 29, 2020
1 parent 5b4d0d0 commit c443899
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ class SearchController extends AbstractBaseController
*/
protected $contentDataProcessor;

public function __construct()
/**
* @param ContentDataProcessor $contentDataProcessor
*/
public function injectContentDataProcessor(ContentDataProcessor $contentDataProcessor)
{
$this->contentDataProcessor = GeneralUtility::makeInstance(ContentDataProcessor::class);
$this->contentDataProcessor = $contentDataProcessor;
}

/**
Expand Down

0 comments on commit c443899

Please sign in to comment.