mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 21:36:23 +00:00
22 lines
337 B
Markdown
22 lines
337 B
Markdown
---
|
|
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
|
|
```
|