Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseschalken authored Dec 8, 2016
1 parent 425a0aa commit 4ba7ac4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,17 @@ After running
<?php

spl_autoload_register(function ($class) {
static $map = array (
static $map = array (
'Project\\Foo' => 'Foo.php',
'Project\\Bar' => 'Bar.php',
'Project\\Class1' => 'lots of classes.php',
'Project\\Class2' => 'lots of classes.php',
'Project\\Class3' => 'lots of classes.php',
);

if (isset($map[$class]))
require_once __DIR__ . "/{$map[$class]}";
if (isset($map[$class])) {
require_once __DIR__ . "/{$map[$class]}";
}
}, true, false);

require_once __DIR__ . '/constants.php';
Expand Down

0 comments on commit 4ba7ac4

Please sign in to comment.