Check for HttpKernelRuntime before using it in Twig runtimes
This fixes an incompatibility with Symfony Twig bridge prior to 3.2. The HttpKernelRuntime was introduced in https://github.com/silexphp/Silex/commit/72d7746ec216da230221c19aa6e3092b55596070. It included checks whether the class exists, but not in the Twig runtimes list.
Showing
Please register or sign in to comment