Return Zend\Mvc\Application instance from ZF1 resource so it can be accessed later