Skip to content

Instantly share code, notes, and snippets.

@pboethig
Created July 16, 2016 14:15
Show Gist options
  • Save pboethig/eec9672dfc1c4c2455297ec355e83fd8 to your computer and use it in GitHub Desktop.
Save pboethig/eec9672dfc1c4c2455297ec355e83fd8 to your computer and use it in GitHub Desktop.
<?php
/**
* Created by PhpStorm.
* User: root
* Date: 16.07.16
* Time: 15:34
*/
namespace AppBundle\Controller\Api;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
class UserController extends Controller {
/**
* @Route("/api/user")
* @Method("POST")
*/
public function newAction()
{
return new Response('this is it');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment