authentication_storage = $authentication_storage; } public function register_hook() { add_action( 'deleted_user', [ $this, 'delete_authentications' ] ); } /** * @param int $user_id */ public function delete_authentications( $user_id ) { $this->authentication_storage->close_authentication( $user_id ); } }