Skip to content

Commit

Permalink
Merge 1de2077 into 73b64e2
Browse files Browse the repository at this point in the history
  • Loading branch information
einorler committed May 25, 2016
2 parents 73b64e2 + 1de2077 commit 3a5aea8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Resources/doc/index.md
Expand Up @@ -8,9 +8,11 @@ Welcome to the RouterBundle, the part of ONGR bundles family, which helps to hav

### URL generation

When your document uses [SeoAwareTrait](https://github.com/ongr-io/RouterBundle/blob/master/Document/SeoAwareTrait.php) you have protected property called `$url`. It contains the url for specific document,
When your document uses [SeoAwareTrait](https://github.com/ongr-io/RouterBundle/blob/master/Document/SeoAwareTrait.php) you have protected property called `$url`. It contains the url for specific document,which is used for url generation.

which is used for url generation. Your document also needs to implement [SeoAwareInterface](https://github.com/ongr-io/RouterBundle/blob/master/Document/SeoAwareInterface.php)
Your document must be defined in the configuration of the bundle, under the node `seo_routes`. There you will define the bundle, controller and action that will be called after the router matches the route in your document.

Don't forget that your document also needs to implement [SeoAwareInterface](https://github.com/ongr-io/RouterBundle/blob/master/Document/SeoAwareInterface.php) in order to be used by the ONGR router.

Let's say we have following document:

Expand Down

0 comments on commit 3a5aea8

Please sign in to comment.