mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 04:56:23 +00:00
23 lines
354 B
Markdown
23 lines
354 B
Markdown
---
|
|
date: 2020-11-12
|
|
id: 45b1f81a-d5f4-4f28-99d6-6a1592c75f7d
|
|
title: UTF8 Routing Option
|
|
---
|
|
|
|
# Syntax
|
|
|
|
``` php
|
|
// PHP Annotations
|
|
|
|
/**
|
|
* @Route("/category/{name}", name="category", utf8=true)
|
|
*/
|
|
public function category()
|
|
```
|
|
|
|
``` yaml
|
|
category:
|
|
path: /category/{name}
|
|
controller: App\Controller\DefaultController::category
|
|
utf8: true
|
|
```
|