Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <[email protected]>
  • Loading branch information
goetas and greg0ire authored May 10, 2020
1 parent 9ec5100 commit ce43581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ application:
- The ``services`` node allows you to provide custom services to the underlying ``DependencyFactory`` part
of ``doctrine/migrations``.

- The node ``factories`` is similar to ``services``, with the difference that accepts only callables.
- The node ``factories`` is similar to ``services``, with the difference that it accepts only callables.
The provided callable must return the service to be passed to the ``DependencyFactory``.
The callable will receive as first argument the ``DependencyFactory`` itself,
allowing you to fetch other dependencies from the factory while instantiating your custom dependencies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function testServicesAreLazy() : void
$conn = $this->createMock(Connection::class);
$container->set('doctrine.dbal.default_connection', $conn);

$sorterFactory = new class(){
$sorterFactory = new class() {
public function __invoke() : void
{
throw new Exception('This method should not be invoked.');
Expand Down

0 comments on commit ce43581

Please sign in to comment.