Skip to content

Commit 96a3d63

Browse files
committed
Passing container on to hydrator
1 parent 7ab81f9 commit 96a3d63

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,6 @@ private static function createHydrator(ContainerInterface $container, array $opt
9595
throw new \Exception('Missing Hydrator options');
9696
}
9797

98-
return HydratorFactory::create($options[Options::HYDRATOR_OPTIONS]);
98+
return HydratorFactory::create($container, $options[Options::HYDRATOR_OPTIONS]);
9999
}
100100
}

tests/FactoryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public function testCreate()
3636
CommandLocatorEvent::NAME,
3737
CallbackListener::fromCallable(
3838
function (CommandLocatorEvent $event) use (&$called) {
39-
$this->assertSame([], $event->getMap());
4039
$called = true;
4140
}
4241
)

0 commit comments

Comments
 (0)