Slim 3.1 introduces the App::process() method which can be used to make this adapter a lot simpler.
This is the minimum recommended version of the Slim framework to use with PHPFastCGI. Previous versions of this adapter had to try and replicate core logic to function. This leaves them vulnerable to future changes in the Slim framework.