Update Rest.php

Start dependency injection. Battery Dying :)