what if ``$app['logger']`` or ``$app['request_stack']`` are not defined ?