If I do as it is written in the documentation — https://docs.phalcon.io/en/latest/api/Phalcon_Http_Request.html
use Phalcon\Mvc\Controller;
use Phalcon\Http\Request;
$request = new Request();
$name = $request->getPost("name", "email");
And I get an error: A dependency injection object is required to access the 'filter' service
But If I do so:
use Phalcon\Mvc\Controller;
$name = $this->request->getPost("name", "string");
$phone = $this->request->getPost("phone", "string");
All OK.