options_helper = $options_helper; $this->file_system_adapter = $file_system_adapter; $this->permission_gate = $permission_gate; } /** * Runs the command. * * @return void */ public function handle() { if ( $this->permission_gate->is_managed_by_yoast_seo() ) { $file_removed = $this->file_system_adapter->remove_file(); if ( $file_removed ) { // Maybe move this to a class if we need to handle this option more often. \update_option( Populate_File_Command_Handler::CONTENT_HASH_OPTION, '' ); } } } }