Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0642911

Browse files
committed
[FrameworkBundle] Add a doctrine cache service definition for validator mapping
1 parent 862bdf1 commit 0642911

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@
3939
<argument>%validator.mapping.cache.prefix%</argument>
4040
</service>
4141

42+
<service id="validator.mapping.cache.doctrine.apc" class="Symfony\Component\Validator\Mapping\Cache\DoctrineCache" public="false">
43+
<argument type="service">
44+
<service class="Doctrine\Common\Cache\ApcCache">
45+
<call method="setNamespace">
46+
<argument>%validator.mapping.cache.prefix%</argument>
47+
</call>
48+
</service>
49+
</argument>
50+
</service>
51+
4252
<service id="validator.validator_factory" class="%validator.validator_factory.class%" public="false">
4353
<argument type="service" id="service_container" />
4454
<argument type="collection" />

0 commit comments

Comments
 (0)