magic accessors are deprecated in DI Container