-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
14 lines (11 loc) · 729 Bytes
/
Copy pathbootstrap.php
File metadata and controls
14 lines (11 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
// Get global config.php settings
if (!file_exists(__DIR__ . '/vendor/ezsystems/ezpublish-kernel/config.php')) {
if (!symlink(__DIR__ . '/vendor/ezsystems/ezpublish-kernel/config.php-DEVELOPMENT', __DIR__ . '/vendor/ezsystems/ezpublish-kernel/config.php')) {
throw new \RuntimeException('Could not symlink config.php-DEVELOPMENT to config.php, please copy config.php-DEVELOPMENT to config.php & customize to your needs!');
}
}
if (!($settings = include(__DIR__ . '/vendor/ezsystems/ezpublish-kernel/config.php'))) {
throw new \RuntimeException('Could not read config.php, please copy config.php-DEVELOPMENT to config.php & customize to your needs!');
}
require_once __DIR__ . '/vendor/autoload.php';