Adapted the routing collector to support laravel 4.0 and laravel 4.1