-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautoload.dist.php
More file actions
41 lines (32 loc) · 1 KB
/
autoload.dist.php
File metadata and controls
41 lines (32 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
//
// This is only used in development environments to override
// the composer dependencies to use different versions during
// development. We can then develop on repositories outside of
// the ./vendor directory
//
// Require the composer autoload first so our autoloader will
// take priority.
require_once __DIR__ . '/vendor/autoload.php';
// Require the composer autoloader class because we
// don't want to reinvent the wheel.
require_once __DIR__ . '/vendor/composer/ClassLoader.php';
$loader = new \Composer\Autoload\ClassLoader();
// Namespace map
$map = array(
//'Phavour' => array(__DIR__ . '/../phavour')
// Set this to your local Phavour git repository path
// or the path in your Vagrant machine to the Phavour library
);
// Class map
$classMap = array(
);
// Configure the loader
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
if ($classMap) {
$loader->addClassMap($classMap);
}
// Tell the autoloader to register itself.
$loader->register(true);