Core/Framework/Core.php
private function registerClassloader()
    {
        // Register core classloader
        require_once ('SplClassLoader.php');

        // Classloader to register
        $register = [
            'Core' => $this->basedir,
            'Apps' => $this->basedir,
            'AppsSec' => $this->basedir,
            'Themes' => $this->basedir
        ];

        // Register classloader
        foreach ($register as $key => $path) {
            $loader = new \SplClassLoader($key, $path);
            $loader->register();
        }
    }
private function registerClassloader()
    {
        // Register core classloader
        require_once ('SplClassLoader.php');

        // Classloader to register
        $register = [
            'Core' => $this->basedir,
            'Apps' => $this->basedir,
            'AppsSec' => $this->basedir,
            'Themes' => $this->basedir
        ];

        // Register classloader
        foreach ($register as $key => $path) {
            $loader = new \SplClassLoader($key, $path);
            $loader->register();
        }
    }
private function registerClassloader ( ) { // Register core classloader require_once ( 'SplClassLoader.php' ) ; // Classloader to register $ register = [ 'Core' => $ this -> basedir , 'Apps' => $ this -> basedir , 'AppsSec' => $ this -> basedir , 'Themes' => $ this -> basedir ] ; // Register classloader foreach ( $ register as $ key => $ path ) { $ loader = new \ SplClassLoader ( $ key , $ path ) ; $ loader -> register ( ) ; } }
Registers SPL classloader
Registers SPL classloader