[owncloud-devel] Accessing the server container is deprecated

Tobia De Koninck tobia at ledfan.be
Wed Jan 21 06:47:29 GMT 2015


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:

app in context","message":"Accessing the server container is deprecated. 
Use type annotations to inject core services 

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?


Met vriendelijke groeten / Best regards

Tobia De Koninck

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150121/5df08eb5/attachment.html>

More information about the Devel mailing list