Timber\Timber::test_compatibility PHP Метод

test_compatibility() защищенный Метод

Tests whether we can use Timber
protected test_compatibility ( )
    protected function test_compatibility()
    {
        if (is_admin() || $_SERVER['PHP_SELF'] == '/wp-login.php') {
            return;
        }
        if (version_compare(phpversion(), '5.3.0', '<') && !is_admin()) {
            trigger_error('Timber requires PHP 5.3.0 or greater. You have ' . phpversion(), E_USER_ERROR);
        }
        if (!class_exists('Twig_Autoloader')) {
            trigger_error('You have not run "composer install" to download required dependencies for Timber, you can read more on https://github.com/timber/timber#installation', E_USER_ERROR);
        }
    }