Update ResourceServicesFactory.php

Pass templates in controller when mongodb has chosen as driver.
Merge pull request #59 from shatzibitten/master

Update ResourceServicesFactory.php