RequestStack
$requestStack ) { /** @var Enlight_Controller_Front $front */
$front = Enlight_Class::
Instance('Enlight_Controller_Front',
[$eventManager]);
$front->
setDispatcher($container->
get('dispatcher'
));
$front->
setRouter($container->
get(RouterInterface::
class));
$front->
setParams($options);
$front->
setRequestStack($requestStack);
/** @var Enlight_Plugin_PluginManager $plugins */
$plugins =
$container->
get('plugins'
);
$plugins->
registerNamespace($front->
Plugins());
if (!
empty($options['throwExceptions'
])) { $front->
throwExceptions((bool) $options['throwExceptions'
]);
} try {