You cant use the DIContainer form the App Framework since all apps inherit from them to define their own container. The safest bet is to pass in the Container instead of the app name, the app name itself is accessible from the container see https://github.com/owncloud/appframework/blob/master/dependencyinjection/dicontainer.php#L61