Skip to content

Commit

Permalink
Update TableGatewayAbstractFactory.php
Browse files Browse the repository at this point in the history
Change deprecated `ArraySerializable` to `ArraySerializableHydrator`

Signed-off-by: Dick Donohue <[email protected]>
  • Loading branch information
dickdonohue committed Aug 19, 2021
1 parent 9895f9c commit 02612b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TableGatewayAbstractFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ protected function getAdapterFromConfig(array $config, ContainerInterface $conta
* Retrieve the configured hydrator.
*
* If configuration defines a `hydrator_name`, that service will be
* retrieved from the HydratorManager; otherwise ArraySerializable
* retrieved from the HydratorManager; otherwise ArraySerializableHydrator
* will be retrieved.
*
* @param array $config
* @return HydratorInterface
*/
protected function getHydratorFromConfig(array $config, ContainerInterface $container)
{
$hydratorName = $config['hydrator_name'] ?? 'ArraySerializable';
$hydratorName = $config['hydrator_name'] ?? 'ArraySerializableHydrator';
$hydrators = $container->get('HydratorManager');
return $hydrators->get($hydratorName);
}
Expand Down

0 comments on commit 02612b1

Please sign in to comment.