Update for router extension methods.

Refs cakephp/cakephp#4525
It will probably be gone in stable, but for the moment it exists as deprecated.