Skip to content

Commit 47728e9

Browse files
Use .yaml over .yml for route files (#161)
1 parent 500c583 commit 47728e9

4 files changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ return [
5858

5959
### Include the routes of the bundle
6060

61-
Include the routes of the bundle in a new `config/routes/sulu_headless_website.yml` file in your project:
61+
Include the routes of the bundle in a new `config/routes/sulu_headless_website.yaml` file in your project:
6262

6363
```yaml
6464
sulu_headless:
6565
type: portal
66-
resource: "@SuluHeadlessBundle/Resources/config/routing_website.yml"
66+
resource: "@SuluHeadlessBundle/Resources/config/routing_website.yaml"
6767
```
6868
6969
### Set the controller of your template
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
sulu_headless:
22
type: portal
3-
resource: "@SuluHeadlessBundle/Resources/config/routing_website.yml"
3+
resource: "@SuluHeadlessBundle/Resources/config/routing_website.yaml"

UPGRADE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
## 3.0.0
44

5+
### Route file moved
6+
7+
If your project still uses `config/routes/sulu_headless_website.yml` from previous versions, rename it to `config/routes/sulu_headless_website.yaml` (or keep the `.yml` filename if you prefer). In either case, update the path inside the route file:
8+
9+
```diff
10+
- config/routes/sulu_headless_website.yml
11+
+ config/routes/sulu_headless_website.yaml
12+
13+
sulu_headless:
14+
type: portal
15+
- resource: "@SuluHeadlessBundle/Resources/config/routing_website.yml"
16+
+ resource: "@SuluHeadlessBundle/Resources/config/routing_website.yaml"
17+
```
18+
519
### Increased minimum Sulu version to 3.0
620

721
The minimum Sulu version was increased from 2.6 to 3.0.

0 commit comments

Comments
 (0)