Now assuming i have several classes all in one file and i run composer dump-autoload -o and i try to use any of those classes it works, now how about if all those classes were included into that single file using require_once, should that also work? I ask this in relation to a question i asked before which hasn't been answered yet: Loading external libraries in laravel-5
Now when i dump the contents(class) of each required file into that single file i am able to use those classes however when i use require_once i always get class not found? Is there a reason for this? Or am i simply not using it properly?
To further clarify what i am asking:
require_once("Class_1.php");
require_once("Class_2.php");
require_once("Class_3.php");
require_once("Class_4.php");
against this:
class Class_1 extends Class_Extender_1 {..}
class Class_2 extends Class_Extender_2 {..}
class Class_3 extends Class_Extender_3 {..}
class Class_4 extends Class_Extender_4 {..}