Mercurial > hg > rc1
annotate vendor/sabre/vobject/tests/bootstrap.php @ 43:771f6803cc4b default tip
somehow lost the correctly updated metadata so e.g. 'mail' package wasn't being imported
author | Charlie Root |
---|---|
date | Sun, 26 Jan 2025 13:13:49 -0500 |
parents | 430dbd5346f7 |
children |
rev | line source |
---|---|
7 | 1 <?php |
2 | |
3 date_default_timezone_set('UTC'); | |
4 | |
5 $try = array( | |
6 __DIR__ . '/../vendor/autoload.php', | |
7 __DIR__ . '/../../../autoload.php', | |
8 ); | |
9 | |
10 foreach($try as $path) { | |
11 if (file_exists($path)) { | |
12 $autoLoader = include $path; | |
13 break; | |
14 } | |
15 } | |
16 | |
17 $autoLoader->addPsr4('Sabre\\VObject\\',__DIR__ . '/VObject'); | |
18 | |
19 if (!defined('SABRE_TEMPDIR')) { | |
20 define('SABRE_TEMPDIR', __DIR__ . '/temp/'); | |
21 } | |
22 | |
23 if (!file_exists(SABRE_TEMPDIR)) { | |
24 mkdir(SABRE_TEMPDIR); | |
25 } |