Skip to content

Commit

Permalink
Register passwords_resets only on default connection
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrouwers committed Sep 24, 2015
1 parent 2f45c79 commit e1d9597
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/Passwords/PasswordResetServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function boot(DoctrineManager $manager)
// The path to PasswordReminder should be added, so the entity can be found
$manager->addPaths([
__DIR__
]);
], $manager->getDefaultManagerName());
}

/**
Expand Down
8 changes: 8 additions & 0 deletions src/DoctrineManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ public function __construct(Container $container, ManagerRegistry $registry)
$this->container = $container;
}

/**
* @return string
*/
public function getDefaultManagerName()
{
return $this->registry->getDefaultManagerName();
}

/**
* @param string $connection
* @param string|callable $callback
Expand Down

0 comments on commit e1d9597

Please sign in to comment.