bootstrap.php 465 B

12345678910111213141516171819202122232425
  1. <?php
  2. date_default_timezone_set('UTC');
  3. $try = array(
  4. __DIR__ . '/../vendor/autoload.php',
  5. __DIR__ . '/../../../autoload.php',
  6. );
  7. foreach($try as $path) {
  8. if (file_exists($path)) {
  9. $autoLoader = include $path;
  10. break;
  11. }
  12. }
  13. $autoLoader->addPsr4('Sabre\\VObject\\',__DIR__ . '/VObject');
  14. if (!defined('SABRE_TEMPDIR')) {
  15. define('SABRE_TEMPDIR', __DIR__ . '/temp/');
  16. }
  17. if (!file_exists(SABRE_TEMPDIR)) {
  18. mkdir(SABRE_TEMPDIR);
  19. }