Browse code

removed obsolete doc

Fabien Potencier authored on 22/10/2016 00:38:22
Showing 1 changed files
... ...
@@ -343,25 +343,6 @@ To get around this, force Twig to invalidate the bytecode cache::
343 343
         // ...
344 344
     ));
345 345
 
346
-.. note::
347
-
348
-    Before Twig 1.22, you should extend ``Twig_Environment`` instead::
349
-
350
-        class OpCacheAwareTwigEnvironment extends Twig_Environment
351
-        {
352
-            protected function writeCacheFile($file, $content)
353
-            {
354
-                parent::writeCacheFile($file, $content);
355
-
356
-                // Compile cached file into bytecode cache
357
-                if (function_exists('opcache_invalidate')) {
358
-                    opcache_invalidate($file, true);
359
-                } elseif (function_exists('apc_compile_file')) {
360
-                    apc_compile_file($file);
361
-                }
362
-            }
363
-        }
364
-
365 346
 Reusing a stateful Node Visitor
366 347
 -------------------------------
367 348