Shortcuts methods in Controller 1. 獲取服務 $this-get($serviceId); 2. 重定向 $this-redirectToRoute($routeName, $parameters, $status = 302); 3. 生成路由的url $this-generateUrl($routeName, $paramet
Custom Exception ExceptionController namespace KitBaseBundle\Controller; use Symfony\Bundle\TwigBundle\Controller\ExceptionController as BaseController; use Symfony\Component\HttpF