concrete/src/Application/Application.php
public function setupPackageAutoloaders()
    {
        $pla = \Concrete\Core\Package\PackageList::get();
        $pl = $pla->getPackages();
        $cl = ClassLoader::getInstance();
        /** @var \Package[] $pl */
        foreach ($pl as $p) {
            \Config::package($p);
            if ($p->isPackageInstalled()) {
                $pkg = $this->make('Concrete\Core\Package\PackageService')->getClass($p->getPackageHandle());
                if (is_object($pkg) && (!$pkg instanceof \Concrete\Core\Package\BrokenPackage)) {
                    $cl->registerPackage($pkg);
                    $this->packages[] = $pkg;
                }
            }
        }
    }
public function setupPackageAutoloaders()
    {
        $pla = \Concrete\Core\Package\PackageList::get();
        $pl = $pla->getPackages();
        $cl = ClassLoader::getInstance();
        /** @var \Package[] $pl */
        foreach ($pl as $p) {
            \Config::package($p);
            if ($p->isPackageInstalled()) {
                $pkg = $this->make('Concrete\Core\Package\PackageService')->getClass($p->getPackageHandle());
                if (is_object($pkg) && (!$pkg instanceof \Concrete\Core\Package\BrokenPackage)) {
                    $cl->registerPackage($pkg);
                    $this->packages[] = $pkg;
                }
            }
        }
    }
public function setupPackageAutoloaders ( ) { $ pla = \ Concrete \ Core \ Package \ PackageList :: get ( ) ; $ pl = $ pla -> getPackages ( ) ; $ cl = ClassLoader :: getInstance ( ) ; /** @var \Package[] $pl */ foreach ( $ pl as $ p ) { \ Config :: package ( $ p ) ; if ( $ p -> isPackageInstalled ( ) ) { $ pkg = $ this -> make ( 'Concrete\Core\Package\PackageService' ) -> getClass ( $ p -> getPackageHandle ( ) ) ; if ( is_object ( $ pkg ) && ( ! $ pkg instanceof \ Concrete \ Core \ Package \ BrokenPackage ) ) { $ cl -> registerPackage ( $ pkg ) ; $ this -> packages [ ] = $ pkg ; } } } }
Register package autoloaders. Has to come BEFORE session calls.
Register package autoloaders . Has to come BEFORE session calls .