Skip to content

Instantly share code, notes, and snippets.

View nebkam's full-sized avatar

Nebojša Kamber nebkam

View GitHub Profile
<?php
namespace AppBundle\Form;
use AppBundle\Document\SchoolGrades;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class SchoolGradesType extends AbstractType
sensio_framework_extra:
router:
annotations: false
<?php
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
class UserController
{
/**
* @Route(path="/users", methods={"GET"})
<?php
namespace App\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
class UserController
{
/**
<?php
namespace App\Controller;
// Before
// use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
// After
use Symfony\Component\Routing\Annotation\Route;