Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-mail-logging domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u313897478/domains/teachdeveloper.com/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the breadcrumb-navxt domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u313897478/domains/teachdeveloper.com/public_html/wp-includes/functions.php on line 6114 How to Check Twig Version in Symfony - Teach Developer
Finding out which version of the Twig you have installed in Symfony framework can be useful when solving bugs or installing packages. This tutorial shows how to check Twig version in Symfony.
We can use the Environment::VERSION constant to determine Twig version.
test.php
<?php
use Twig\Environment;
require_once__DIR__.'/vendor/autoload.php';
echo Environment::VERSION;
This constant can be used in the template as follows: