[owncloud-devel] Accessing the server container is deprecated

Lukas Reschke lukas at statuscode.ch
Wed Jan 21 07:07:22 GMT 2015

Either use the new automatic dependency assembly (http://doc.owncloud.org/server/8.0/developer_manual/app/container.html#use-automatic-dependency-assembly-recommended) or do it like https://github.com/owncloud/core/pull/13349/files

Sent from mobile device

> On 21 Jan 2015, at 07:47, Tobia De Koninck <tobia at ledfan.be> wrote:
> Hi
> I'm working on improving the dependency injection in the ownCloud chat app.  Before I injected the whole DI container, now only the classes I need. However my log is spammed with these errors:
> {"reqId":"a24609b5ab5558936d2279bb80468a29","remoteAddr":"","app":"no app in context","message":"Accessing the server container is deprecated. Use type annotations to inject core services instead!","level":0,"time":"2015-01-21T06:43:49+00:00","method":"POST","url":"\/index.php\/apps\/chat\/och\/api"}
> I think they are caused by calls like these: https://github.com/owncloud/chat/blob/master/app/chat.php#L221 . 
> PR: https://github.com/owncloud/chat/pull/193
> How can I solve this, without removing the DI container?
> Thanks!
> Met vriendelijke groeten / Best regards
> Tobia De Koninck
> _______________________________________________
> Devel mailing list
> Devel at owncloud.org
> http://mailman.owncloud.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150121/2f513c6e/attachment.html>

More information about the Devel mailing list