Created
August 14, 2013 09:00
-
-
Save MichaelGooden/6229196 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Module.php | |
<?php | |
namespace VendorName\LibraryName; | |
class Module | |
{ | |
public function getAutoloaderConfig() | |
{ | |
return array( | |
'Zend\Loader\StandardAutoloader' => array( | |
'namespaces' => array( | |
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, | |
), | |
), | |
); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Have your directory structure like this: | |
VendorName\LibraryName: | |
Module.php | |
src\VendorName\LibraryName: | |
your files. | |
MyClass.php (which would be namespaced as VendorName\LibraryName\MyClass) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment