Skip to content

Commit

Permalink
Merge branch '3.4' into 4.3
Browse files Browse the repository at this point in the history
* 3.4:
  Fix CS
  • Loading branch information
nicolas-grekas committed Dec 10, 2019
2 parents 81e2dff + 760d4ff commit 33ce0d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions DependencyInjection/AbstractDoctrineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,7 @@ protected function assertValidMappingConfiguration(array $mappingConfig, $object
}

if (!\in_array($mappingConfig['type'], ['xml', 'yml', 'annotation', 'php', 'staticphp'])) {
throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or '.
'"staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. '.
'You can register them by adding a new driver to the '.
'"%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')
));
throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or "staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. You can register them by adding a new driver to the "%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')));
}
}

Expand Down
6 changes: 1 addition & 5 deletions Security/User/EntityUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ public function refreshUser(UserInterface $user)
// That's the case when the user has been changed by a form with
// validation errors.
if (!$id = $this->getClassMetadata()->getIdentifierValues($user)) {
throw new \InvalidArgumentException('You cannot refresh a user '.
'from the EntityUserProvider that does not contain an identifier. '.
'The user object has to be serialized with its own identifier '.
'mapped by Doctrine.'
);
throw new \InvalidArgumentException('You cannot refresh a user from the EntityUserProvider that does not contain an identifier. The user object has to be serialized with its own identifier mapped by Doctrine.');
}

$refreshedUser = $repository->find($id);
Expand Down

0 comments on commit 33ce0d9

Please sign in to comment.