Commit | Line | Data |
---|---|---|
395539d7 AE |
1 | <?php |
2 | ||
da220714 AE |
3 | declare(strict_types=1); |
4 | ||
395539d7 | 5 | $projectRoot = dirname(__DIR__); |
da220714 | 6 | require_once($projectRoot . '/vendor/autoload.php'); |
395539d7 AE |
7 | |
8 | // Symlink module into ssp vendor lib so that templates and urls can resolve correctly | |
da220714 | 9 | $linkPath = $projectRoot . '/vendor/simplesamlphp/simplesamlphp/modules/sqlauth'; |
395539d7 AE |
10 | if (file_exists($linkPath) === false) { |
11 | echo "Linking '$linkPath' to '$projectRoot'\n"; | |
12 | symlink($projectRoot, $linkPath); | |
13 | } |