Update AbstractResourceListener.php