校正Slim注入类的文件夹

发布于 2025-01-30 18:50:43 字数 163 浏览 1 评论 0原文

我有一个可以实现“行动”的课程的路线。 因此,我将其放在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁梦 2025-02-06 18:50:43

我将其放在src/application/actions上。

纤细的骨骼是结构的一个很好的灵感。

I would place it on src/Application/Actions.

Slim Skeleton is a good inspiration for structure.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文