Esempio n. 1
0
<?php

require_once __DIR__ . '/popphp/pop-loader/ClassLoader.php';
$autoloader = new Pop\Loader\ClassLoader();
$autoloader->addClassMapFromFile(__DIR__ . '/classmap.php');
return $autoloader;
Esempio n. 2
0
<?php

/**
 * Created by PhpStorm.
 * User: olubodun.akinyele
 * Date: 7/29/15
 * Time: 6:27 AM
 */
$loader = new \Pop\Loader\ClassLoader();
$autoLoadClasses = [realpath($config->pathTo->admin), realpath($config->pathTo->store), realpath(__DIR__ . '/../core/')];
foreach ($autoLoadClasses as $row) {
    $loader->addClassMapFromDir($row);
}