Moving a project from RoR to Symfony - what are the required steps?

I took a medium-sized project that was originally written using RoR. The forces that were supposed to decide that they want web applications are “ported” to Symfony.

After looking at some RoR code, I suspect that RoR had a big impact on Symfony, as many idioms are separate, so I believe that the "port" of an application from one to the other should be quite possible (although not for the faint of heart).

Without delving into the discussion of wisdom (or otherwise) about this, can someone provide a list of TODO marker points in terms of the steps required to port a RoR application to Symfony.?

+2
source share
1 answer

I can’t give you any markers, not to mention the RoR to Symfony migration guide, but I can tell you how I approach it. Remember, just because two applications use the same design pattern, their implementation may be different, so you probably have to adjust a lot of code, despite any common idioms.

Assuming the RoR project is covered by UnitTests, I would start porting all tests to PHPUnit. Start with functional tests. Since the problem area does not change when porting, they should be the same as in RoR. Leave them blank if you cannot immediately implement them. The main thing is to describe what the application should do at the end.

, , , . , Symfony , RoR. , UnitTests. . , .

Symfony , . , RoR Symfony PHP, , , RoR.

, Symfony Zend Framework. ZF RoR, , Symfony RoR.

, Symfony RoR, , RoR PHP, CakePHP. , Symfony, , , .

+3

Source: https://habr.com/ru/post/1773987/


All Articles