Commit aaf075ee authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

mise en place du /var pour sessions, logs & caches

parent 2afb3029
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for api/src/Kernel.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ class Kernel extends BaseKernel
    public function getCacheDir(): string
    {
        $appConfig = Application::getInstance()->config();
        $cacheDir  = $appConfig['module_listener_options']['cache_dir'] ?? getcwd() . '/cache';
        $cacheDir  = $appConfig['module_listener_options']['cache_dir'] ?? getcwd() . '/var/cache';

        return $cacheDir;
    }
@@ -22,7 +22,7 @@ class Kernel extends BaseKernel

    public function getLogDir(): string
    {
        return getcwd() . '/data/log';
        return getcwd() . '/var/log';
    }


+2 −6
Changes for code/test9.php: 2 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -6,10 +6,6 @@
 * @var $io         \Symfony\Component\Console\Style\SymfonyStyle
 */

$s = $container->get(\Framework\Navigation\Navigation::class);
dump($_SESSION);

dump($s->home->getPages());

$pages = $s->home->getPage('intervenant');

dd($pages);
 No newline at end of file
phpinfo();
 No newline at end of file
+108 −109

File changed.

Preview size limit exceeded, changes collapsed.

+0 −6
Changes for config.local.php.default: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -466,12 +466,6 @@ return [

            'logger' => [
                'enable'          => true,
                'level'           => \Monolog\Logger::DEBUG,
                'file'            => __DIR__ . '/cache/unicaen-signature.log',
                'stdout'          => false,
                'file_permission' => 0666,
                'customLogger'    => null,

            ],

            'hook_recipients' => [
+1 −1
Changes for config/application.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ class OseConfig
                './module',
                './vendor',
            ],
            'cache_dir'                => 'cache/',
            'cache_dir'                => 'var/cache/',
            'config_cache_enabled'     => PHP_SAPI !== 'cli', // pas de cache en mode cli
            'config_cache_key'         => 'application.config.cache',
            'module_map_cache_enabled' => true,
Loading