owncloud/core — pull request #8759 by Raydiation (2014-05-28 00:17:04+00:00)
Title: fix 8757, get rid of service locator antipattern

This gets rid of the last service locator occurrence which also broke phpunit tests, see #8757

Since I've changed the SecurityMiddleware, please review properly

@DeepDiver1975 @MorrisJobke

@LukasReschke please review