mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
Restructure project index to public dir
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
This commit is contained in:
parent
3e9aaa6675
commit
e14c076981
8 changed files with 8 additions and 8 deletions
|
@ -23,7 +23,7 @@
|
|||
"node_modules/bootstrap-css-only/css/bootstrap.min.css",
|
||||
"core/app/themes/suite8/css/style.scss"
|
||||
],
|
||||
"deployUrl": "public/dist/",
|
||||
"deployUrl": "dist/",
|
||||
"assets": [
|
||||
"core/app/themes"
|
||||
]
|
||||
|
|
|
@ -3,7 +3,7 @@ framework:
|
|||
|
||||
parameters:
|
||||
secret: '%env(APP_SECRET)%'
|
||||
legacy.dir: '%kernel.project_dir%/legacy'
|
||||
legacy.dir: '%kernel.project_dir%/public/legacy'
|
||||
legacy.path: '/legacy'
|
||||
legacy.session_name: 'LEGACYSESSID'
|
||||
default_session_name: 'PHPSESSID'
|
||||
|
|
|
@ -3,8 +3,8 @@ parameters:
|
|||
# Order matters, lower ones will override the above ones
|
||||
- 'legacy/themes/default/images'
|
||||
- 'legacy/custom/themes/default/images'
|
||||
- 'core/app/themes/default/images'
|
||||
- 'dist/themes/default/images'
|
||||
- 'legacy/themes/<theme>/images'
|
||||
- 'legacy/custom/themes/<theme>/images'
|
||||
- 'core/app/themes/<theme>/images'
|
||||
- 'core/app/themes/<theme>/images/modules'
|
||||
- 'dist/themes/<theme>/images'
|
||||
- 'dist/themes/<theme>/images/modules'
|
||||
|
|
|
@ -88,7 +88,7 @@ class ThemeImageService
|
|||
{
|
||||
|
||||
$path = $this->buildPath($imagePath, $theme);
|
||||
$fullPath = $this->projectDir . '/' . $path;
|
||||
$fullPath = $this->projectDir . '/public/' . $path;
|
||||
|
||||
$it = $this->themeImageFinder->find($fullPath);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ use App\Kernel;
|
|||
use Symfony\Component\ErrorHandler\Debug;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
require __DIR__ . '/config/bootstrap.php';
|
||||
require __DIR__ . '/../config/bootstrap.php';
|
||||
|
||||
if ($_SERVER['APP_DEBUG']) {
|
||||
umask(0000);
|
||||
|
@ -22,7 +22,7 @@ if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false
|
|||
}
|
||||
|
||||
// Get the autoloader class
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
|
||||
$request = Request::createFromGlobals();
|
Loading…
Add table
Add a link
Reference in a new issue