I have a Yii 1 application with 5 modules and we want to start building new applications/modules using Yii 2. Migrating the existing Yii 1 application and modules to Yii 2 is not an option, it will takes time. But we want to start new modules/applications using Yii 2.
The Yii 1 application has a layout and a security module with some controllers/models and filters for doing authentication and authorization. The new Yii 2 application will be doing a SSO (using the cookie approach) with the Yii 1 application.
However, the issue I have right now is, how to deal with the security module. I don’t want to duplicate that code generating it in Yii 2, specially the model classes that map to my security database schema. What options do I have? Can I somehow reuse the security Yii 1 module in the Yii 2 application ?
Thanks for your advise.