$container->
getDefinition('session.storage.factory.native'
)->
replaceArgument(3, true
);
$container->
getDefinition('session.storage.factory.php_bridge'
)->
replaceArgument(2, true
);
} $container->
setParameter('session.storage.options',
$options);
// session handler (the internal callback registered with PHP session management)
if (null ===
$config['handler_id'
]) { $config['save_path'
] = null;
$container->
setAlias('session.handler', 'session.handler.native'
);
} else { $container->
resolveEnvPlaceholders($config['handler_id'
], null,
$usedEnvs);
if ($usedEnvs ||
preg_match('#^[a-z]++://#',
$config['handler_id'
])) { $id = '.cache_connection.'.ContainerBuilder::
hash($config['handler_id'
]);
$container->
getDefinition('session.abstract_handler'
) ->
replaceArgument(0,
$container->
hasDefinition($id) ?
new Reference($id) :
$config['handler_id'
]);
$container->
setAlias('session.handler', 'session.abstract_handler'
);
} else { $container->
setAlias('session.handler',
$config['handler_id'
]);
} }