Skip to content
Snippets Groups Projects
Commit e303bce1 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Remplacement d'une classe dépréciée

parent 976d76b1
No related branches found
No related tags found
No related merge requests found
Pipeline #12016 passed
......@@ -2,7 +2,7 @@
namespace UnicaenDbImport\Connection;
use Laminas\Hydrator\ClassMethods;
use Laminas\Hydrator\ClassMethodsHydrator;
class ApiConnection
{
......@@ -45,7 +45,7 @@ class ApiConnection
{
$inst = new static();
$h = new ClassMethods();
$h = new ClassMethodsHydrator();
$h->hydrate($config, $inst);
return $inst;
......@@ -56,7 +56,7 @@ class ApiConnection
*/
public function toArray(): array
{
$h = new ClassMethods();
$h = new ClassMethodsHydrator();
return $h->extract($this);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment