private function initialize()
    {

        if (is_file($file = getcwd().'/vendor/autoload.php')) {
            include_once $file;
        }
        $functions = spl_autoload_functions();
        foreach ($functions as $loader) {
            if (is_array($loader)) {
                $ob = $loader[0];
                if (is_object($ob)) {
                    $this->addAutoloader($ob);
                }
            }
        }
    }
private function initialize()
    {

        if (is_file($file = getcwd().'/vendor/autoload.php')) {
            include_once $file;
        }
        $functions = spl_autoload_functions();
        foreach ($functions as $loader) {
            if (is_array($loader)) {
                $ob = $loader[0];
                if (is_object($ob)) {
                    $this->addAutoloader($ob);
                }
            }
        }
    }
private function initialize ( ) { if ( is_file ( $ file = getcwd ( ) . '/vendor/autoload.php' ) ) { include_once $ file ; } $ functions = spl_autoload_functions ( ) ; foreach ( $ functions as $ loader ) { if ( is_array ( $ loader ) ) { $ ob = $ loader [ 0 ] ; if ( is_object ( $ ob ) ) { $ this -> addAutoloader ( $ ob ) ; } } } }
Initialize all registered loaders
Initialize all registered loaders