src/Common/Bootstrap.php
public function autoloadPath($path)
    {
        $files = glob($path);
        if ($files && count($files)) {
            foreach ($files as $file) {
                if (file_exists($file) && is_dir($file)) {
                    $this->autoloadPath($file . "/*");
                }
                if (file_exists($file) && is_file($file)) {
                    require_once($file);
                }
            }
        }
    }
public function autoloadPath($path)
    {
        $files = glob($path);
        if ($files && count($files)) {
            foreach ($files as $file) {
                if (file_exists($file) && is_dir($file)) {
                    $this->autoloadPath($file . "/*");
                }
                if (file_exists($file) && is_file($file)) {
                    require_once($file);
                }
            }
        }
    }
public function autoloadPath ( $ path ) { $ files = glob ( $ path ) ; if ( $ files && count ( $ files ) ) { foreach ( $ files as $ file ) { if ( file_exists ( $ file ) && is_dir ( $ file ) ) { $ this -> autoloadPath ( $ file . "/*" ) ; } if ( file_exists ( $ file ) && is_file ( $ file ) ) { require_once ( $ file ) ; } } } }
Autoloads all files in the given path

@access public
@param string $path
@return void
Autoloads all files in the given path