mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-11 21:06:21 +00:00
5126cbff91
This PR was merged into the 1.x branch. Discussion ---------- changed the arguments of generateKey We now pass the template name and the template class, which seems much better from a UX standpoint. Passing the prefix was really just a hack and an implementation leak to be able to determine the variable part of the class name and generate sub-directories for templates. Now, we generate the cache key by taking the last characters instead of the first ones, to avoid the need for the class prefix. That should also make Drupal happy :) Commits -------c2e75ffchanged the arguments of generateKey0157315deprecated Twig_Environment::getTemplateClassPrefix