Skip to content

Commit

Permalink
Merge branch '6.1' into 6.2
Browse files Browse the repository at this point in the history
* 6.1:
  Update using-the-multi-domain-bundle.md
  • Loading branch information
acrobat committed Nov 1, 2022
2 parents 9744465 + 411a4b3 commit 5cadcf4
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions docs/cookbook/using-the-multi-domain-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,15 @@ of the page).
Your site *has* to be defined as a multilanguage site in parameters.yml.


### Modify app/AppKernel.php
### Modify config/bundles.php

You have to add the MultiDomainBundle in the registerBundles function :
You have to add the MultiDomainBundle in the returned array :

```php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new Kunstmaan\MultiDomainBundle\KunstmaanMultiDomainBundle(),
);
...
}
return [
...
}
Kunstmaan\MultiDomainBundle\KunstmaanMultiDomainBundle::class => ['all' => true],
]
```

### Include the routing configuration in your main routing.yml
Expand Down

0 comments on commit 5cadcf4

Please sign in to comment.