校正Slim注入类的文件夹
我有一个可以实现“行动”的课程的路线。 因此,我将其放在SRC \ Application \ Actions文件夹中。
也有另一种路由到类,但是该类并不能实现接口。我使用__invoke。
在要放置的纤细结构中,该类别的Propper文件夹是哪个? 我是新来的,
谢谢
I have one routing to a class that implements “Action”.
So I placed it in the src\Application\Actions folder.
Also have another routing to a class, but this class does not implement no interface. I use __invoke.
Which is the propper folder for this class in the Slim structure to be placed in?
I’m new to Slim
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将其放在
src/application/actions
上。纤细的骨骼是结构的一个很好的灵感。
I would place it on
src/Application/Actions
.Slim Skeleton is a good inspiration for structure.