Problem with sessions Support for loading components using $components property is removed. Use $this->loadComponent() instead in initialize()

Cakephp V4.1.4
Php 7.3 / MariaDB latest version (migration and new server since 3 weeks.)

After a migration from 3.6 to 4.1, Auth component seem breaked.

I have this message : Support for loading components using $components property is removed. Use $this->loadComponent() instead in initialize()

I use Legacy for another hasher, and component is correctly loaded on AppController.php like this :
$this->loadComponent(‘Auth’, [
‘authenticate’ => [
‘Form’ => [
‘passwordHasher’ => [
‘className’ => ‘Legacy’,
]
]
]
]);

I have two projects, and only this one is breaked. The other run perfectly. Both are on Cakephp 4.1.4.

Regards,

Although you do load the component correctly, do you also have the public $components property set? It’s presence may be triggering the warning.

Ho god ! One file were be corrupted by a bad setup, and I see only the new (without $component var…). The corrupted file contained $component var. So sorry ! And thanks a lot !