August 2016
Intermediate to advanced
286 pages
5h 31m
English
Now that we have an autoloader in place, we can begin to remove all the include calls that only load up class and function definitions. When we are done, the only remaining include calls will be those that are executing logic. This will make it easier to see which include calls are forming the logic paths in our legacy application, and which are merely providing definitions.
We will start with a scenario where the codebase is structured relatively well. Afterwards, we will answer some questions related to layouts that are not so amenable to revision.
For the purposes of this chapter, we will use the term include to cover not just include but also require, include_once, and require_once.
Read now
Unlock full access