string.php 507 B

123456789101112131415161718192021
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\DependencyInjection\Loader\Configurator;
  11. use Twig\Extra\String\StringExtension;
  12. return static function (ContainerConfigurator $container) {
  13. $container->services()
  14. ->set('twig.extension.string', StringExtension::class)
  15. ->tag('twig.extension')
  16. ;
  17. };