I have a legacy framework that is php <= 5.3.2 approx with MySQL 5.2.1 (real legacy here) - that is not even PSR-0 compliance.
My goal is to transition out of the framework BUT there are over 1000 files involved - so recoding it for now is not an option.
So my solution for now is to have two fold routing:
Step 1: if routing matches - use framework 1 (consider Laravel) step 2: if routing doesn't match - use legacy framework.
This way - anything that is "new" that is to be develop we can use the newer framework's feature - while still operating the old one until we can phase it out eventually.
My question now is: what is the proper way to have the newer framework be the dominant framework and have the legacy be the fall back so that eventually when i've transictioned 75% of the code I'll just display a 404 at that point.
The Legacy routing is: /controller/action so for each route - there must be a controller and action function then if needed queries. What this means is that the routing is dependent on a controller / action and an associated view (ie you make a controller name foo, action bar, to get foo/bar) in comparison to Laravel where you can specify routing aliases and then associate a controller/action to it (ie if you create a controller and several functions - you dont necessary gain controller/action routing without editing the routes.php)
The legacy code has an index.php with a reference to a bootstrap that looks for class to load and environment configuration variables.