Advertisement
vitozy

PHP 8 Attributes (Symfony)

Oct 9th, 2020
912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. namespace App\Controller;
  2.  
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5.  
  6. class NewsController extends AbstractController
  7. {
  8.     #[Route('/news', name: 'news')]
  9.    public function news()
  10.     {
  11.         // ...
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement