@@ -176,10 +176,6 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
$this->token=$token;
$this->lock=$lock;
$this->systemFileConfig=$system_file_config;
if(!$event_dispatcher){
@trigger_error('The event dispatcher service should be passed to FileUploadResource::__construct() since 9.2.0. This will be required in Drupal 10.0.0. See https://www.drupal.org/node/3032541',E_USER_DEPRECATED);