Last active
January 2, 2016 14:09
-
-
Save frne/8314817 to your computer and use it in GitHub Desktop.
Some symfony tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" ?> | |
<!-- configuring object repositories as services --> | |
<container xmlns="http://symfony.com/schema/dic/services" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | |
<services> | |
<service id="entity.repository.facebook_identity" | |
class="Doctrine\ORM\EntityRepository" | |
factory-service="doctrine.orm.entity_manager" | |
factory-method="getRepository" | |
lazy="true"> | |
<argument>FrneAuthBundle:FacebookIdentity</argument> | |
</service> | |
</services> | |
</container> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment