我有一个名为Dispatcher的类,当它的dispatch()方法运行时,它会实例化请求的控制器。我的AbstractController有一个构造函数,比如
public function __construct(RequestInterface $request, ResponseInterface此时,当我实例化Dispatcher时,我将ViewFactory和ServiceFactory注入</e
我似乎不能掌握的是如何在运行时动态设置属性?然后我有了测试应用程序的代码,我已经注册了接口和对象。现在-如何实例化TextFileWriter并设置FilePath、OutputFileName和DataToWrite属性?namespace IOCv2Library.Interfaces public interface IFileWriter