-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbootstrap.php
24 lines (21 loc) · 1.22 KB
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* This file is part of the eZ Publish package
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
*/
// 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 vendor/ezsystems/ezpublish-kernel/config.php-DEVELOPMENT to vendor/ezsystems/ezpublish-kernel/config.php, please copy vendor/ezsystems/ezpublish-kernel/config.php-DEVELOPMENT to vendor/ezsystems/ezpublish-kernel/config.php & customize to your needs!' );
}
}
if ( !( $settings = include ( __DIR__ . '/vendor/ezsystems/ezpublish-kernel/config.php' ) ) )
{
throw new \RuntimeException( 'Could not read vendor/ezsystems/ezpublish-kernel/config.php, please copy vendor/ezsystems/ezpublish-kernel/config.php-DEVELOPMENT to vendor/ezsystems/ezpublish-kernel/config.php & customize to your needs!' );
}
require_once __DIR__ . '/vendor/autoload.php';