简体   繁体   English

Symfony 6 - CAS 捆绑包

[英]Symfony 6 - CAS Bundle

I am using Symfony 6 and I should use CAS bundle for my app because we use SSO system.我正在使用 Symfony 6,我应该为我的应用程序使用 CAS 捆绑包,因为我们使用 SSO 系统。 So, can I install the following bundle while I use Symfony 6 because there is no CAS bundle for Symfony6: https://github.com/ecphp/cas-bundle那么,我可以在使用 Symfony 6 时安装以下包吗,因为 Symfony6 没有 CAS 包: https://github.com/ecphp/cas-bundle

I asked Symfony Community and I got recieved this message:我问了 Symfony 社区,我收到了这条消息:

Unfortunately, I've never worked with CAS protocol before, so don't use those bundles myself.不幸的是,我以前从未使用过 CAS 协议,所以我自己不要使用这些包。 But let me give you some hints.但是让我给你一些提示。 First of all, I see that the bundle you linked https://github.com/ecphp/ca.. .首先,我看到您链接的捆绑包https://github.com/ecphp/ca.. does not support Symfony 6 yet, though there's an issue about it: https://github.com/ecphp/ca.. .尚不支持 Symfony 6,但存在一个问题: https://github.com/ecphp/ca..。 - feel free to follow it to know when that issue is closed. -随时关注它以了解该问题何时关闭。 Also, if you have time - feel free to help with upgrading that bundle and make it compatible with Symfony 6 and send a PR - that may have a good side effect, because even if the bundle is slow on reviewing/merging your PR - you will be able to use your fork in your project while PR is not merged yet.此外,如果您有时间 - 请随时帮助升级该捆绑包并使其与 Symfony 6 兼容并发送 PR - 这可能会有很好的副作用,因为即使捆绑包在审查/合并您的 PR 时速度很慢 - 您在 PR 尚未合并时,将能够在您的项目中使用您的fork。 Other options - you may want to take a look at GitHub search: https://github.com/search?o.. .其他选项 - 你可能想看看 GitHub 搜索: https://github.com/search?o..。 - probably you will find that is still maintained. - 可能你会发现它仍然被维护着。 If no luck - you may want to use low-level tools that are used in those bundles to write the implementation yourself - take a look at composer.json file to see what libs are used behind the scene in those bundles that might help you.如果运气不好——您可能想使用这些捆绑包中使用的低级工具自己编写实现——查看 composer.json 文件,看看在这些捆绑包中幕后使用了哪些库可能对您有所帮助。 Or, another option - downgrade your project to Symfony 5.4.或者,另一种选择 - 将您的项目降级到 Symfony 5.4。 Basically, Symfony 5.4 == 6.0, but in Symfony 6.0 just dropped all the legacy code since 5.x version.基本上,Symfony 5.4 == 6.0,但在 Symfony 6.0 中只是删除了自 5.x 版本以来的所有遗留代码。 Though, it might work and you will be able to install that bundle, but keep in mind that if the bundle is dead and nobody will add Symfony 6 support there - you won't be able to upgrade to the newer version at some point.虽然,它可能会工作并且您将能够安装该捆绑包,但请记住,如果该捆绑包已失效并且没有人会在那里添加 Symfony 6 支持 - 您将无法在某个时候升级到较新的版本。

Do you have any idea about this issue?你对这个问题有什么想法吗?

Thanks all:)谢谢大家:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM