Skip to content

Instantly share code, notes, and snippets.

@paramientos
Last active November 29, 2020 00:21
Show Gist options
  • Save paramientos/064c83675c87fd8448acefb7b1e43e79 to your computer and use it in GitHub Desktop.
Save paramientos/064c83675c87fd8448acefb7b1e43e79 to your computer and use it in GitHub Desktop.
<?php
use \Attribute;
class UserController
{
#[Route('api/users', ['Methods' : ['GET']])]
public function getUsers()
{
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment