|
5 | 5 | namespace Neo4j\Neo4jBundle\DependencyInjection; |
6 | 6 |
|
7 | 7 | use GraphAware\Bolt\Driver as BoltDriver; |
| 8 | +use GraphAware\Neo4j\Client\ClientInterface; |
8 | 9 | use GraphAware\Neo4j\Client\Connection\Connection; |
9 | 10 | use GraphAware\Neo4j\OGM\EntityManager; |
10 | 11 | use GraphAware\Neo4j\Client\HttpDriver\Driver as HttpDriver; |
| 12 | +use GraphAware\Neo4j\OGM\EntityManagerInterface; |
11 | 13 | use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; |
12 | 14 | use Symfony\Component\Config\FileLocator; |
13 | 15 | use Symfony\Component\DependencyInjection\ChildDefinition; |
@@ -41,11 +43,14 @@ public function load(array $configs, ContainerBuilder $container) |
41 | 43 | $loader->load('entity_manager.xml'); |
42 | 44 | $this->handleEntityManagers($config, $container, $clientServiceIds); |
43 | 45 | $container->setAlias('neo4j.entity_manager', 'neo4j.entity_manager.default'); |
| 46 | + $container->setAlias(EntityManagerInterface::class, 'neo4j.entity_manager.default'); |
44 | 47 | } |
45 | 48 |
|
46 | 49 | // add aliases for the default services |
47 | 50 | $container->setAlias('neo4j.connection', 'neo4j.connection.default'); |
| 51 | + $container->setAlias(Connection::class, 'neo4j.connection.default'); |
48 | 52 | $container->setAlias('neo4j.client', 'neo4j.client.default'); |
| 53 | + $container->setAlias(ClientInterface::class, 'neo4j.client.default'); |
49 | 54 |
|
50 | 55 | // Configure toolbar |
51 | 56 | if ($this->isConfigEnabled($container, $config['profiling'])) { |
|
0 commit comments