Updated to use swagger-php 0.8 API.

Minor changes to the module so that it's compatible with swagger-php 0.8.