Logo
Explore Help
Sign In
GNUsocial/gnu-social
4
0
Fork 1
You've already forked gnu-social
Code Issues Releases Wiki Activity
gnu-social/tests/bootstrap.php

12 lines
332 B
PHP
Raw Normal View History

[V3] Big Bang Beginning anew, this time with a modern framework: symfony
2020-03-10 19:04:22 +00:00
<?php
use Symfony\Component\Dotenv\Dotenv;
[DOCTRINE][SCHEMADEF] Create a new metadata driver to allow us to continue using static schemaDef functions This has the benefit of requiring fewer code changes, as well as providing a better isolation between GNU social and symfony, useful in case the framework needs to be changed
2020-03-15 21:21:11 +00:00
require dirname(__DIR__) . '/vendor/autoload.php';
[V3] Big Bang Beginning anew, this time with a modern framework: symfony
2020-03-10 19:04:22 +00:00
[DOCTRINE][SCHEMADEF] Create a new metadata driver to allow us to continue using static schemaDef functions This has the benefit of requiring fewer code changes, as well as providing a better isolation between GNU social and symfony, useful in case the framework needs to be changed
2020-03-15 21:21:11 +00:00
if (\file_exists(\dirname(__DIR__) . '/config/bootstrap.php')) {
require dirname(__DIR__) . '/config/bootstrap.php';
} elseif (\method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(\dirname(__DIR__) . '/.env');
[V3] Big Bang Beginning anew, this time with a modern framework: symfony
2020-03-10 19:04:22 +00:00
}
Copy Permalink
Powered by Gitea Page: 28ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API