Initial commit: CloudOps infrastructure platform
This commit is contained in:
31
docker-compose/mautic-setup/mautic-backup-files/docroot/app/config/paths.php
Executable file
31
docker-compose/mautic-setup/mautic-backup-files/docroot/app/config/paths.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
$paths = [
|
||||
// customizable
|
||||
'themes' => 'themes',
|
||||
'assets' => 'app/assets',
|
||||
'media' => 'media',
|
||||
'asset_prefix' => '',
|
||||
'plugins' => 'plugins',
|
||||
'translations' => 'translations',
|
||||
'local_config' => '%kernel.project_dir%/config/local.php',
|
||||
];
|
||||
|
||||
$root = $root ?? realpath(__DIR__.'/..');
|
||||
$projectRoot = $projectRoot ?? Mautic\CoreBundle\Loader\ParameterLoader::getProjectDirByRoot($root);
|
||||
|
||||
// allow easy overrides of the above
|
||||
if (file_exists($projectRoot.'/config/paths_local.php')) {
|
||||
include $projectRoot.'/config/paths_local.php';
|
||||
} elseif (file_exists($root.'/config/paths_local.php')) {
|
||||
include $root.'/config/paths_local.php';
|
||||
}
|
||||
|
||||
// fixed
|
||||
$paths = array_merge($paths, [
|
||||
// remove /app from the root
|
||||
'root' => substr($root, 0, -4),
|
||||
'app' => 'app',
|
||||
'bundles' => 'app/bundles',
|
||||
'vendor' => 'vendor',
|
||||
]);
|
||||
Reference in New Issue
Block a user