Update for router extension methods.

Refs cakephp/cakephp#4525