Symfony\Component\DomCrawler\Form::__construct
Constructor.
Signature
public function __construct(DOMNode
$node,
[string
$currentUri = null,
[string
$method = null]] )
Parameters
$node
— \DOMNode- A \DOMNode 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)
Errors/Exceptions
-
LogicException
- if the node is not a button inside a form tag