mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°2435.1 Portal: Split portal composer.json in 2
- Autoloader for portal files in the itop-portal-base module - Dependencies moved to root composer.json - Add autoloader for /core and /application content
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
$container->loadFromExtension('framework', [
|
||||
'secret' => 's3cr3t',
|
||||
'default_locale' => 'fr',
|
||||
'csrf_protection' => true,
|
||||
'form' => [
|
||||
'csrf_protection' => [
|
||||
'field_name' => '_csrf',
|
||||
],
|
||||
],
|
||||
'http_method_override' => false,
|
||||
'esi' => [
|
||||
'enabled' => true,
|
||||
],
|
||||
'ssi' => [
|
||||
'enabled' => true,
|
||||
],
|
||||
'profiler' => [
|
||||
'only_exceptions' => true,
|
||||
'enabled' => false,
|
||||
],
|
||||
'router' => [
|
||||
'resource' => '%kernel.project_dir%/config/routing.xml',
|
||||
'type' => 'xml',
|
||||
],
|
||||
'session' => [
|
||||
'storage_id' => 'session.storage.native',
|
||||
'handler_id' => 'session.handler.native_file',
|
||||
'name' => '_SYMFONY',
|
||||
'cookie_lifetime' => 86400,
|
||||
'cookie_path' => '/',
|
||||
'cookie_domain' => 'example.com',
|
||||
'cookie_secure' => true,
|
||||
'cookie_httponly' => false,
|
||||
'use_cookies' => true,
|
||||
'gc_maxlifetime' => 90000,
|
||||
'gc_divisor' => 108,
|
||||
'gc_probability' => 1,
|
||||
'save_path' => '/path/to/sessions',
|
||||
],
|
||||
'templating' => [
|
||||
'cache' => '/path/to/cache',
|
||||
'engines' => ['php', 'twig'],
|
||||
'loader' => ['loader.foo', 'loader.bar'],
|
||||
'form' => [
|
||||
'resources' => ['theme1', 'theme2'],
|
||||
],
|
||||
'hinclude_default_template' => 'global_hinclude_template',
|
||||
],
|
||||
'assets' => [
|
||||
'version' => 'v1',
|
||||
],
|
||||
'translator' => [
|
||||
'enabled' => true,
|
||||
'fallback' => 'fr',
|
||||
'paths' => ['%kernel.project_dir%/Fixtures/translations'],
|
||||
],
|
||||
'validation' => [
|
||||
'enabled' => true,
|
||||
],
|
||||
'annotations' => [
|
||||
'cache' => 'file',
|
||||
'debug' => true,
|
||||
'file_cache_dir' => '%kernel.cache_dir%/annotations',
|
||||
],
|
||||
'serializer' => [
|
||||
'enabled' => true,
|
||||
'enable_annotations' => true,
|
||||
'name_converter' => 'serializer.name_converter.camel_case_to_snake_case',
|
||||
'circular_reference_handler' => 'my.circular.reference.handler',
|
||||
],
|
||||
'property_info' => true,
|
||||
'ide' => 'file%%link%%format',
|
||||
'request' => [
|
||||
'formats' => [
|
||||
'csv' => [
|
||||
'text/csv',
|
||||
'text/plain',
|
||||
],
|
||||
'pdf' => 'application/pdf',
|
||||
],
|
||||
],
|
||||
]);
|
||||
Reference in New Issue
Block a user