src/AbstractForm.php
public function apply(array $data)
    {
        if ($this->antiCsrf && ! $this->antiCsrf->isValid($data)) {
            throw new CsrfViolationException;
        }
        $this->fill($data);

        return $this->filter->apply($data);
    }
public function apply(array $data)
    {
        if ($this->antiCsrf && ! $this->antiCsrf->isValid($data)) {
            throw new CsrfViolationException;
        }
        $this->fill($data);

        return $this->filter->apply($data);
    }
public function apply ( array $ data ) { if ( $ this -> antiCsrf && ! $ this -> antiCsrf -> isValid ( $ data ) ) { throw new CsrfViolationException ; } $ this -> fill ( $ data ) ; return $ this -> filter -> apply ( $ data ) ; }
Applies the filter to a subject.

@param array $data

@throws CsrfViolationException

@return bool
Applies the filter to a subject .