Autoloader for manual installation
Added PSR4 Autoloader Updated README with manual installation instructions
This commit is contained in:
1 parent
6ae79b63b3
commit
79982a6107
4 files changed
+184
-1
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user