To isolate the variable scope used inside the $file it is required in it's own method
Merge pull request #8138 from owncloud/allow-app-in-routes.php

To isolate the variable scope used inside the $file it is required in it...