Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit bcc2fef

Browse files
committed
Edits ContainerModificationsNotAllowedException message
1 parent 1ccde79 commit bcc2fef

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Exception/ContainerModificationsNotAllowedException.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@
1414
*/
1515
class ContainerModificationsNotAllowedException extends DomainException implements ExceptionInterface
1616
{
17+
/**
18+
* @param string $service Name of service that already exists.
19+
* @return self
20+
*/
1721
public static function fromExistingService($service)
1822
{
1923
return new self(sprintf(
20-
'The container does not allow to replace/update a service'
21-
. ' with existing instances; the following '
22-
. 'already exist in the container: %s',
24+
'The container does not allow replacing or updating a service'
25+
. ' with existing instances; the following service'
26+
. ' already exists in the container: %s',
2327
$service
2428
));
2529
}

0 commit comments

Comments
 (0)