Commit 2c7af8e6 authored by Fabien Potencier's avatar Fabien Potencier

moved TwigCoreExtension to Provider/

parent 563023c7
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Silex\Extension; namespace Silex\Provider;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpKernel\HttpKernelInterface;
......
...@@ -52,7 +52,7 @@ class TwigServiceProviderTest extends \PHPUnit_Framework_TestCase ...@@ -52,7 +52,7 @@ class TwigServiceProviderTest extends \PHPUnit_Framework_TestCase
{ {
$app = new Application(); $app = new Application();
$app->register(new TwigExtension(), array( $app->register(new TwigServiceProvider(), array(
'twig.templates' => array( 'twig.templates' => array(
'hello' => '{{ render("/foo") }}', 'hello' => '{{ render("/foo") }}',
'foo' => 'foo', 'foo' => 'foo',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment