Skip to content

Commit

Permalink
adding getTranslator function to avoid conflicts with SonataAdminBundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gladhon committed Sep 6, 2011
1 parent 38f8f59 commit 56d9639
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Templating/Twig/TranslationExtension.php
Expand Up @@ -28,4 +28,10 @@ public function transchoice($message, $count, array $arguments = array(), $domai
{
return $this->translatorHelper->transChoice($message, $count, array_merge(array('%count%' => $count), $arguments), $domain);
}

public function getTranslator()
{
return $this->translatorHelper;
}

}

0 comments on commit 56d9639

Please sign in to comment.