lion0k/project-lvl1-s384

View on GitHub
src/bootstrap.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * User: li0n0k
 * Date: 27.11.18
 * Time: 12:27
 */

$autoloadPath1 = __DIR__ . '/../../../autoload.php';
$autoloadPath2 = __DIR__ . '/../vendor/autoload.php';

if (file_exists($autoloadPath1)) {
    require_once $autoloadPath1;
} else {
    require_once $autoloadPath2;
}