After upgrading to zf3, $this->getInputFilter() doesn't work in Apigility resources

My API class extends AbstractResourceListener and when I was using ZF2 it worked like:

states it should when uploading files through the API. After upgrading to ZF3, $this->getInputFilter() returns as null and I can’t get uploaded file.

If I can’t do this anymore, can I get the input filter through the service manager and inject into the class?
Or do I have to do somethings else?

Any help is much appreciated!