Review and next steps

At this point we have not modified our legacy application very much. We have added and registered some autoloader code, but it is not actually being called yet.

No matter. Having an autoloader is critical to the next step in modernizing our legacy application. Using an autoloader will allow us to start removing include statements that only load classes and functions. The remaining include statements will be logical-flow includes, showing us which parts of the system are logic and which are definition-only. This is the beginning of our transition from an include-oriented architecture toward a class-oriented architecture.

Get Modernizing Legacy Applications in PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.