Remove dependency on container, removing service locator antipattern
Disabled internet checking as mentioned when in proxy mode
 To isolate the variable scope used inside the $file it is required in it's own method - refs #8138
fix code formatting
add requirements to routing

Conflicts:
	tests/lib/appframework/routing/RoutingTest.php
Update controller.php

Backwards compability fix for faster merge ;)
Merge pull request #8148 from owncloud/backport-6676-stable6

Disabled internet checking as mentioned when in proxy mode
Fixed Sabre Node implementation to correctly return timestamps as int

Negative timestamps were returned as string and were confusing other

Sabre API like Sabre_DAV_Property_GetLastModified.

This fix makes sure the timestamp is returned as int when defined.

Backport of 4f11786 from master
Merge pull request #8119 from Raydiation/stable6

Remove dependency on container, removing service locator antipattern
Merge pull request #8151 from owncloud/backport-8137-stable6

add requirements to routing
Merge pull request #8150 from owncloud/backport-8138-stable6

 To isolate the variable scope used inside the $file it is required in i...
LDAP: fetch email from LDAP on userExists check as well (along to Quota and Avatar)
Merge pull request #8166 from owncloud/ldap_update_email

Also check for email address on userExists (next to Avatar and Quota)
Remove limit and offset manipulation when getting users or groups, because it does not work when more than one user or group backend. Fixing it would be too costly performancewise, so we switch back to the model used in OC 5: limit and offset are effective per backend, and not a general constraint
adjust tests accordingly
Backport of PR #7815, correct LDAP user count on setup with many users
(occ user:report)

LDAP: make sure cache key for paged result cookie matches when limit or offset is null or 0

LDAP: fix user report i.e. count for LDAP servers with really many users

initialize variable

var count is assigned in the inner loop so it must be checked inside there to be properly used as part of the exit condition of the outer loop

Put inner loop into own method, let's see whether it makes scrutinizer happier
LDAP: cache display names immediately on retrieval, saves tens of unecessary queries to LDAP server in the share dialog for example
add additional comments, PHPdoc and check whether it's really applicable
Verify that a file exists before we share it
Use JS as content-type due to mimesniffing