Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

RequestInterface missing getPost #29

@boesing

Description

@boesing

As of zend-mvc Zend\Mvc\Controller\AbstractController, you'll get the RequestInterface as a response of AbstractController::getRequest().

Thus will lead to issues on resolving getPost() in Autocompletions. IMHO, getPost method should be required to any RequestInterface implementing class.

Example

class DummyController extends \Zend\Mvc\Controller\AbstractController 
{
    public function dummyAction() 
    {
        $request = $this->getRequest();
        $postValues = $request->getPost();
    }    
}

The getPost method will work, since \Zend\Http\Request implements it. But Autocompletion wont resolve this, since the return value is RequestInterface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions