Skip to content

Instantly share code, notes, and snippets.

@flyingluscas
Created November 12, 2016 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingluscas/43ec6332b28a2c0e8c693a0e23615cc6 to your computer and use it in GitHub Desktop.
Save flyingluscas/43ec6332b28a2c0e8c693a0e23615cc6 to your computer and use it in GitHub Desktop.
DI Example
public static function getAll(Request $request, Response $response, VehiclesService $service)
{
    $getAllVechiles = $service->getAll();

    $response->write($getAllVechiles);
    return $response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment