1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00
appwrite/app/preload.php

30 lines
799 B
PHP
Raw Normal View History

2020-05-14 20:22:06 +12:00
<?php
/**
* Init
*
* Inializes both Appwrite API entry point, queue workers, and CLI tasks.
* Set configuration, framework resources, app constants
*
*/
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
require_once __DIR__.'/../vendor/autoload.php';
}
2020-05-14 22:55:57 +12:00
use Appwrite\Preloader\Preloader;
2020-05-30 21:53:34 +12:00
require_once __DIR__.'/../app/init.php';
require_once __DIR__.'/../app/app.php';
2020-05-14 22:55:57 +12:00
(new Preloader())
2020-05-30 21:53:34 +12:00
->paths(realpath(__DIR__ . '/../vendor'))
->paths(realpath(__DIR__ . '/../app/config'))
->paths(realpath(__DIR__ . '/../app/controllers'))
->paths(realpath(__DIR__ . '/../app/views'))
->ignore(__DIR__ . '/../vendor/phpmailer/phpmailer/get_oauth_token.php')
2020-05-14 22:55:57 +12:00
->load();