Skip to content

Commit

Permalink
Update tree.md
Browse files Browse the repository at this point in the history
According to this commit: 7c5c824

`TranslationListener` doesn't exist anymore. In documentation it still says `TranslationListener` which is confusing. Should be changed to `TranslatableListener`.
  • Loading branch information
takeit committed Dec 10, 2014
1 parent b1c3643 commit c1761b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ $controller = $this;

### Nesting Translatatable and Sluggable extensions

If you want to attach **TranslationListener** also add it to EventManager after
If you want to attach **TranslatableListener** also add it to EventManager after
the **SluggableListener** and **TreeListener**. It is important because slug must be generated first
before the creation of it`s translation.

Expand All @@ -641,7 +641,7 @@ $treeListener = new \Gedmo\Tree\TreeListener();
$evm->addEventSubscriber($treeListener);
$sluggableListener = new \Gedmo\Sluggable\SluggableListener();
$evm->addEventSubscriber($sluggableListener);
$translatableListener = new \Gedmo\Translatable\TranslationListener();
$translatableListener = new \Gedmo\Translatable\TranslatableListener();
$translatableListener->setTranslatableLocale('en_us');
$evm->addEventSubscriber($translatableListener);
// now this event manager should be passed to entity manager constructor
Expand Down

0 comments on commit c1761b0

Please sign in to comment.