Adding possibility to inject classes from extensions in instances via PHP code