public function loadPsr4()
    {
        $data = $this->getData();

        // Always load these
        if (isset($data['always']))
        {
            $this->loadPsr4Group($data['always']);
        }

        // These only in admin
        if (is_admin() && isset($data['admin']))
        {
            $this->loadPsr4Group($data['admin']);
        }

        // These only in frontend
        if ( !is_admin() && isset($data['frontend']))
        {
            $this->loadPsr4Group($data['frontend']);
        }
    }
public function loadPsr4()
    {
        $data = $this->getData();

        // Always load these
        if (isset($data['always']))
        {
            $this->loadPsr4Group($data['always']);
        }

        // These only in admin
        if (is_admin() && isset($data['admin']))
        {
            $this->loadPsr4Group($data['admin']);
        }

        // These only in frontend
        if ( !is_admin() && isset($data['frontend']))
        {
            $this->loadPsr4Group($data['frontend']);
        }
    }
public function loadPsr4 ( ) { $ data = $ this -> getData ( ) ; // Always load these if ( isset ( $ data [ 'always' ] ) ) { $ this -> loadPsr4Group ( $ data [ 'always' ] ) ; } // These only in admin if ( is_admin ( ) && isset ( $ data [ 'admin' ] ) ) { $ this -> loadPsr4Group ( $ data [ 'admin' ] ) ; } // These only in frontend if ( ! is_admin ( ) && isset ( $ data [ 'frontend' ] ) ) { $ this -> loadPsr4Group ( $ data [ 'frontend' ] ) ; } }
Autoload all the classes inside the PSR4 sections for our groups
Autoload all the classes inside the PSR4 sections for our groups