I have a Symfony project where I want to inject an entity repository into a service. The service definition is in XML format.

```
        <service id="vendorname_shop.checkout_data_manager" class="Vendorname\ShopBundle\Checkout\CheckoutDataManager">
            <argument type="service" id="security.token_storage" />
            <argument type="service" id="session" />
            <argument type="service" id="vendorname_shop.repository.pickup_point" />
            <argument type="service" id="vendorname_shop.repository.order_payment_method" />
            <argument type="service" id="vendorname_shop.repository.billing_address" />
        </service>

```

I'd like to make `vendorname_shop.repository.billing_address` service to be a simple entity repository (not a custom class that I wrote, but the result of 

`EntityManager->getRepository(Vendorname\ShopBundle\Entity\BillingAddress::class)`

method call), so I used the factory syntax in the xml, but I keep recieving error messages when Symfony tries to evaluate the argument:

```
        <service id="vendorname_shop.repository.billing_address" class="Doctrine\ORM\EntityRepository">
            <factory service="doctrine.orm.entity_manager" method="getRepository" />
            <argument type="expression">Vendorname\ShopBundle\Entity\BillingAddress::class</argument>
        </service>

```

The code above gives me `Unexpected character "\" around position 11.`