register middleware as string to not force request to be instantiated too early and thus not having url parameters
Merge pull request #8139 from owncloud/fix-middleware-registration

register middleware as string to not force request to be instantiated to...