It all started with some efforts to localize a website. I was using Twig along with its I18n extension.
$extensions[] = new Twig_Extensions_Extension_I18n();
foreach ($extensions as $extension) {
$twig->addExtension($extension);
}
I often want to re-use certain strings across different pages, but split the text domains into different files for better organization. It doesn't seem like Twig can pull from a specific text domain on its own, but when I google around, the Symfony version of the Twig i18n extension can do this.
Therein lies my confusion. I constantly find documentation for the Symfony version, but I seem to have a barebones version instead. To make matters more confusing, it seems Twig was produced by Symfony yet mine doesn't have all that fun stuff. I've run into other similar situations where functions I could really use were apparently only available when running within the Symfony framework.
Can anyone explain what's going on here? Can I switch to using the more capable Symfony twig extensions instead, perhaps? I feel quite confused about the whole thing.