Skip to content

Commit

Permalink
add $container without BC break
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Lechat committed Nov 15, 2017
1 parent 3471334 commit 61776f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class ManagerRegistry extends BaseManagerRegistry
{
public function __construct(ContainerInterface $container, $name, array $connections, array $managers, $defaultConnection, $defaultManager, $proxyInterfaceName)
public function __construct($name, array $connections, array $managers, $defaultConnection, $defaultManager, $proxyInterfaceName, ContainerInterface $container = null)
{
$parentTraits = class_uses(parent::class);
if (isset($parentTraits[ContainerAwareTrait::class])) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/mongodb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@

<!-- Registry -->
<service id="doctrine_mongodb" class="%doctrine_mongodb.odm.class%" public="true">
<argument type="service" id="service_container" />
<argument>MongoDB</argument>
<argument>%doctrine_mongodb.odm.connections%</argument>
<argument>%doctrine_mongodb.odm.document_managers%</argument>
<argument>%doctrine_mongodb.odm.default_connection%</argument>
<argument>%doctrine_mongodb.odm.default_document_manager%</argument>
<argument>Doctrine\ODM\MongoDB\Proxy\Proxy</argument>
<argument type="service" id="service_container" />
</service>

<!-- listeners -->
Expand Down

0 comments on commit 61776f2

Please sign in to comment.