Autoloader for manual installation

Added PSR4 Autoloader
Updated README with manual installation instructions
This commit is contained in:
Adrien Loison committed 2015-07-16 00:46:15 -07:00
1 parent 6ae79b63b3
commit 79982a6107
4 files changed
+184 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?php
namespace Box\Spout\Autoloader;
require_once 'Psr4Autoloader.php';
/**
* @var string $srcBaseDirectory
* Full path to "src/Spout" which is what we want "Box\Spout" to map to.
*/
$srcBaseDirectory = dirname(dirname(__FILE__));
$loader = new Psr4Autoloader();
$loader->register();
$loader->addNamespace('Box\Spout', $srcBaseDirectory);