Cakephp v3 Fatal Error with Custom Route class

Hi

I am getting same error as in the below link.

Let me know how can we solve it ?