Multi level Dependency Injection with trait and json config of dependencies  for PHP