Skip to content

Commit

Permalink
moved default form template to the DIC config
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 authored and fabpot committed Dec 12, 2010
1 parent abe8047 commit 30f231d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Symfony/Bundle/TwigBundle/Extension/FormExtension.php
Expand Up @@ -35,9 +35,7 @@ class FormExtension extends \Twig_Extension
public function __construct(array $resources = array())
{
$this->themes = new \SplObjectStorage();
$this->resources = array_merge(array(
'TwigBundle::form.twig',
), $resources);
$this->resources = $resources;
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Symfony/Bundle/TwigBundle/Resources/config/twig.xml
Expand Up @@ -13,7 +13,9 @@
</parameter>
<parameter key="twig.loader.class">Symfony\Bundle\TwigBundle\Loader\Loader</parameter>
<parameter key="twig.renderer.class">Symfony\Bundle\TwigBundle\Renderer\Renderer</parameter>
<parameter key="twig.form.resources" type="collection"></parameter>
<parameter key="twig.form.resources" type="collection">
<parameter>TwigBundle::form.twig</parameter>
</parameter>
</parameters>

<services>
Expand Down

0 comments on commit 30f231d

Please sign in to comment.