Symfony\Component\DomCrawler\Form::__construct PHP Method

__construct() public method

Constructor.
public __construct ( DOMElement $node, string $currentUri, string $method = null, string $baseHref = null )
$node DOMElement A \DOMElement instance
$currentUri string The URI of the page where the form is embedded
$method string The method to use for the link (if null, it defaults to the method defined by the form)
$baseHref string The URI of the used for relative links, but not for empty action
    public function __construct(\DOMElement $node, $currentUri, $method = null, $baseHref = null)
    {
        parent::__construct($node, $currentUri, $method);
        $this->baseHref = $baseHref;

        $this->initialize();
    }