Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
30 lines (22 loc) · 956 Bytes

File metadata and controls

30 lines (22 loc) · 956 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
use PHPCensor\Configuration;
use PHPCensor\DatabaseManager;
use PHPCensor\Helper\Lang;
use PHPCensor\StoreRegistry;
use Symfony\Component\HttpFoundation\Session\Session;
const ROOT_DIR = __DIR__ . '/';
const SRC_DIR = ROOT_DIR . 'src/';
const PUBLIC_DIR = ROOT_DIR . 'public/';
const APP_DIR = ROOT_DIR . 'app/';
const RUNTIME_DIR = ROOT_DIR . 'runtime/';
require_once(ROOT_DIR . 'vendor/autoload.php');
$configurationPath = APP_DIR . 'config.yml';
$configuration = new Configuration($configurationPath);
$databaseManager = new DatabaseManager($configuration);
$storeRegistry = new StoreRegistry($databaseManager);
$session = new Session();
$session->start();
\define('APP_URL', $configuration->get('php-censor.url', '') . '/');
\define('REALTIME_UI', $configuration->get('php-censor.realtime_ui', true));
Lang::init($configuration, $storeRegistry, null, $session->get('php-censor-user-id'));
Morty Proxy This is a proxified and sanitized view of the page, visit original site.