TelegramApiServer/bootstrap.php
Alexander Pankratov 2cdf37c8e2 Update readme & composer & name
Update response generation
2019-06-09 20:47:46 +03:00

14 lines
444 B
PHP

<?php
//Check if autoload has been already loaded (in case plugin installed in existing project)
$root = __DIR__;
if (!file_exists($root . '/vendor/autoload.php')) {
$root = __DIR__ . '/../../..';
}
require_once $root . '/vendor/autoload.php';
chdir($root);
//Check if root env file hash been loaded (in case plugin installed in existing project)
if (!getenv('SWOOLE_SERVER_ADDRESS')) {
Dotenv\Dotenv::create($root, '.env')->load();
}