<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @bundles/LeadBundle/Provider/FormAdjustmentsProvider.php */
class __TwigTemplate_9bcbb588356c50b93f29638f1f0db338f312e0034dcfcc2dc1dd9bf32c9ae9ed extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<?php

declare(strict_types=1);

namespace Mautic\\LeadBundle\\Provider;

use Mautic\\LeadBundle\\Event\\FormAdjustmentEvent;
use Mautic\\LeadBundle\\LeadEvents;
use Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;
use Symfony\\Component\\Form\\FormInterface;

final class FormAdjustmentsProvider implements FormAdjustmentsProviderInterface
{
    private EventDispatcherInterface \$dispatcher;

    public function __construct(EventDispatcherInterface \$dispatcher)
    {
        \$this->dispatcher = \$dispatcher;
    }

    /**
     * @param FormInterface<FormInterface> \$form
     * @param mixed[]                      \$fieldDetails
     *
     * @return FormInterface<FormInterface>
     */
    public function adjustForm(FormInterface \$form, string \$fieldAlias, string \$fieldObject, string \$operator, array \$fieldDetails): FormInterface
    {
        \$event = new FormAdjustmentEvent(\$form, \$fieldAlias, \$fieldObject, \$operator, \$fieldDetails);
        \$this->dispatcher->dispatch(LeadEvents::ADJUST_FILTER_FORM_TYPE_FOR_FIELD, \$event);

        return \$event->getForm();
    }
}
";
    }

    public function getTemplateName()
    {
        return "@bundles/LeadBundle/Provider/FormAdjustmentsProvider.php";
    }

    public function getDebugInfo()
    {
        return array (  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "@bundles/LeadBundle/Provider/FormAdjustmentsProvider.php", "/var/www/mautic/app/bundles/LeadBundle/Provider/FormAdjustmentsProvider.php");
    }
}
