PHRAS-3690 Check usage of config/templates directories (#4047)

* create config/template directory when needed

* unused

* remove from requirement and cmd bin/setup check:system
This commit is contained in:
Aina Sitraka
2022-06-03 18:54:09 +03:00
committed by GitHub
parent b4066c6362
commit be93b21edb
2 changed files with 2 additions and 4 deletions

View File

@@ -40,13 +40,13 @@ class TwigServiceProvider implements ServiceProviderInterface
}
if ($app['browser']->isTablet() || $app['browser']->isMobile()) {
$paths[] = $app['root.path'] . '/config/templates/mobile';
// $paths[] = $app['root.path'] . '/config/templates/mobile';
$paths[] = $app['root.path'] . '/templates/mobile';
$paths['phraseanet'] = $app['root.path'] . '/config/templates/mobile';
$paths['phraseanet'] = $app['root.path'] . '/templates/mobile';
}
$paths[] = $app['root.path'] . '/config/templates/web';
// $paths[] = $app['root.path'] . '/config/templates/web';
$paths[] = $app['root.path'] . '/templates/web';
$paths['phraseanet'] = $app['root.path'] . '/config/templates/web';
$paths['phraseanet'] = $app['root.path'] . '/templates/web';

View File

@@ -26,8 +26,6 @@ class FilesystemRequirements extends RequirementCollection implements Requiremen
$baseDir . '/config/stamp',
$baseDir . '/config/status',
$baseDir . '/config/minilogos',
$baseDir . '/config/templates',
$baseDir . '/config/topics',
$baseDir . '/config/wm',
$baseDir . '/logs',
$baseDir . '/tmp',