diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2021-03-15 20:30:19 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2021-03-15 20:30:19 +0100 |
| commit | 16f9c3c10d96b02f9ae63d04c08a8089c73558a5 (patch) | |
| tree | 534791f31754f7dbdb4b8a93268aab219e22b1c5 /src/bdrem/Autoloader.php | |
| parent | 51d65acaa3a4f4c5a0d8daea92e31298b2709184 (diff) | |
| download | bdrem-16f9c3c10d96b02f9ae63d04c08a8089c73558a5.tar.gz bdrem-16f9c3c10d96b02f9ae63d04c08a8089c73558a5.zip | |
Support dependency installation via composer
Diffstat (limited to 'src/bdrem/Autoloader.php')
| -rw-r--r-- | src/bdrem/Autoloader.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bdrem/Autoloader.php b/src/bdrem/Autoloader.php index cebd0eb..e3884d9 100644 --- a/src/bdrem/Autoloader.php +++ b/src/bdrem/Autoloader.php @@ -52,6 +52,10 @@ class Autoloader get_include_path() . PATH_SEPARATOR . __DIR__ . '/../' ); spl_autoload_register(array(new self(), 'load')); + + if (file_exists(__DIR__ . '/../../vendor/autoload.php')) { + require_once __DIR__ . '/../../vendor/autoload.php'; + } } } -?>
\ No newline at end of file +?> |
