comparison vendor/sabre/vobject/tests/bootstrap.php @ 7:430dbd5346f7

vendor sabre as distributed
author Charlie Root
date Sat, 13 Jan 2018 09:06:10 -0500
parents
children
comparison
equal deleted inserted replaced
6:cec75ba50afc 7:430dbd5346f7
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 }