PHILADELPHIA -- Former Giants closer Brian Wilson has crossed to the other side of one of baseball's fiercest rivalries. He has signed with the Los Angeles Dodgers.

Wilson was drafted by the Giants in 2003 and 171 saves in seven seasons in San Francisco. He threw the final pitch of the 2010 World Series and was a cult hero with the fan base thanks to a quirky personality and bushy beard.

Wilson had a second Tommy John surgery in April, 2012 and was cut loose by the Giants in the offseason. The team left the door open for Wilson to return when healthy and closely monitored the rehab process. Twice in recent weeks, Giants bullpen catcher Billy Hayes caught Wilson at USF, and pitching coach Dave Righetti watched one of the outings.

"We've tried to stay in touch throughout the process and monitor his progress," assistant general manager Bobby Evans said on July 22. "His rehab is our responsibility. He's a Giant, and we've been in tough with his people as he considers his options.

"We've kept the door open the whole time."

Wilson shut it Tuesday. The next time he pitches at AT&T Park, he will do so in a rival uniform; the Dodgers, currently in first place in the division, visit San Francisco during the last week of the regular season.

Tim Brown of Yahoo Sports reported that Wilson had three offers and chose the Dodgers. According to Brown, Wilson is expected to be pitching in the big leagues in about two weeks.