Skip to content

Commit

Permalink
Pimcore 11 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Sep 21, 2023
1 parent bf815c3 commit 36b1e32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller/SearchFrontendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
use DynamicSearchBundle\OutputChannel\Result\OutputChannelResultInterface;
use DynamicSearchBundle\Processor\OutputChannelProcessorInterface;
use Pimcore\Controller\FrontendController;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class SearchFrontendController extends FrontendController
{
public function __construct(
protected FormFactoryInterface $formFactory,
protected ConfigurationInterface $configuration,
protected OutputChannelProcessorInterface $outputChannelWorkflowProcessor
) {
Expand Down Expand Up @@ -57,7 +59,7 @@ protected function renderFrontendSearch(Request $request, string $outputChannelN
$outputChannelResult = null;
$searchActive = false;

$form = $this->get('form.factory')->createNamed('', SearchFormType::class, null, ['method' => 'GET']);
$form = $this->formFactory->createNamed('', SearchFormType::class, null, ['method' => 'GET']);

$form = $form->handleRequest($request);

Expand Down

0 comments on commit 36b1e32

Please sign in to comment.