$container->
setParameter('request_listener.http_port', 80
);
$container->
setParameter('request_listener.https_port', 443
);
$config =
[ 'security' =>
[ 'providers' =>
['some_provider' =>
['id' => 'foo'
]],
'firewalls' =>
['some_firewall' =>
['security' => false
]],
],
];
$ext =
new FrameworkExtension();
$ext->
load(['framework' =>
['annotations' => false, 'http_method_override' => false, 'handle_all_throwables' => true, 'php_errors' =>
['log' => true
], 'csrf_protection' => false, 'router' =>
['resource' => 'dummy', 'utf8' => true
]]],
$container);
$ext =
new SecurityExtension();
$ext->
load($config,
$container);
$pass =
new AddSessionDomainConstraintPass();
$pass->
process($container);
$container->
setDefinition('.service_subscriber.fallback_container',
new Definition(Container::
class));
$container->
setAlias(ContainerInterface::
class,
new Alias('.service_subscriber.fallback_container', false
));