Skip to content

Commit a340d71

Browse files
committed
autoload.php
1 parent 48c8684 commit a340d71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

autoload.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
// if library is in dev environement with its own vendor, include its autoload
4+
if (file_exists(__DIR__ . '/vendor')) {
5+
require_once __DIR__ . '/vendor/autoload.php';
6+
} // if library is in vendor of another project, include the global autolaod
7+
else {
8+
require_once __DIR__ . '/../../autoload.php';
9+
}

0 commit comments

Comments
 (0)