<?phpinclude_once__DIR__.'/Autoloader.php';\Matrix\Autoloader::Register();abstractclassFilesystemRegexFilterextendsRecursiveRegexIterator{protected$regex;publicfunction__construct(RecursiveIterator$it,$regex){$this->regex=$regex;parent::__construct($it,$regex);}}classFilenameFilterextendsFilesystemRegexFilter{// Filter files against the regexpublicfunctionaccept(){return(!$this->isFile()||preg_match($this->regex,$this->getFilename()));}}$srcFolder=__DIR__.DIRECTORY_SEPARATOR.'src';$srcDirectory=newRecursiveDirectoryIterator($srcFolder);$filteredFileList=newFilenameFilter($srcDirectory,'/(?:php)$/i');$filteredFileList=newFilenameFilter($filteredFileList,'/^(?!.*(Matrix|Exception)\.php).*$/i');foreach(newRecursiveIteratorIterator($filteredFileList)as$file){if($file->isFile()){include_once$file;}}