. */ use OrangeHRM\ORM\Doctrine; use OrangeHRM\ORM\Exception\ConfigNotFoundException; require_once realpath(__DIR__ . '/../../src/vendor/autoload.php'); $errorMessage = " Can't connect to the database. Please install the OrangeHRM application.\n "; try { Doctrine::getEntityManager(); } catch (ConfigNotFoundException $e) { echo $errorMessage; die; }