public function load($file, $type = null)
{
return $this->convertXlfToPhp($file, $type ?: 'en');
}
/** * Tests loading a file with too many nesting levels. * * @expectedException \OutOfBoundsException */ public function testTooManyLevels() { $loader = new XliffFileLoader($this->getRootDir() . '/app', false); $loader->load($this->getRootDir() . '/vendor/contao/test-bundle/Resources/contao/languages/en/error.xlf', 'en'); }