Package Autoloader
This file contains 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
| <?php | |
| namespace Vendor\Package; | |
| class FirstException extends \Exception | |
| { | |
| // some code that does the functionality | |
| } | |
| class SecondException extends \Exception | |
| { | |
| // some code that does the functionality | |
| } | |
| // by default all | |
| $loader->addPackage('Vendor\Package' => 'vendor/package/src'); | |
| // Specified files exceptions. mostly not much code for exceptions | |
| $loader->addPackage('Vendor\Package' => 'vendor/package/src/exceptions.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment