src/Loader.php
protected function setClassesToRun()
    {
        foreach ($this->listOfFiles as $filename => $file) {
            // Exclude non-PHP files
            if (!Utils::isFilePhp($filename)) {
                continue;
            }

            // Exclude non-Controller classes
            if (!Utils::doesFileContain($filename, 'extends Controller')) {
                continue;
            }

            // Set the classes to run
            $this->classesToRun[] = $this->namespace . '\\' . pathinfo($filename, PATHINFO_FILENAME);
        }
    }
protected function setClassesToRun()
    {
        foreach ($this->listOfFiles as $filename => $file) {
            // Exclude non-PHP files
            if (!Utils::isFilePhp($filename)) {
                continue;
            }

            // Exclude non-Controller classes
            if (!Utils::doesFileContain($filename, 'extends Controller')) {
                continue;
            }

            // Set the classes to run
            $this->classesToRun[] = $this->namespace . '\\' . pathinfo($filename, PATHINFO_FILENAME);
        }
    }
protected function setClassesToRun ( ) { foreach ( $ this -> listOfFiles as $ filename => $ file ) { // Exclude non-PHP files if ( ! Utils :: isFilePhp ( $ filename ) ) { continue ; } // Exclude non-Controller classes if ( ! Utils :: doesFileContain ( $ filename , 'extends Controller' ) ) { continue ; } // Set the classes to run $ this -> classesToRun [ ] = $ this -> namespace . '\\' . pathinfo ( $ filename , PATHINFO_FILENAME ) ; } }
Set Class Instances

Load each Class instance and store in $instances[]
Set Class Instances