ZF-6129: Multiple Services exposed on the same endpoint throws error on invocation if one of the services is invalid
We are facing an issue with the gateway.php that we use as endpoint for Remoting Calls from Flash player. In order to use a php file as a service we need to include it in the gateway.php file. Now if you have two php files exposed as services the gateway.php file has a code snippet similar to:
require_once 'a.php'; require_once 'b.php';
$server = new Zend_Amf_Server(); echo $server->handle();
where a.php & b.php are service php files.
Now if a.php is invalid (syntactical errors etc.) the user is not allowed to invoke the functions of even b.php, since the gateway.php file could not include the invalid a.php file and hence throws an error. This is a concern as the user will now have to make sure that all the files exposed as services need to be valid all the time.
Is there any other better way of exposing the service php files so that the above limitations don't show up.