diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md
index d8ecc8f0f818..4c8522d8effc 100644
--- a/UPGRADE-5.0.md
+++ b/UPGRADE-5.0.md
@@ -525,10 +525,6 @@ Serializer
were removed, use the default context instead.
* The `AbstractNormalizer::handleCircularReference()` method has two new `$format` and `$context` arguments.
* Removed support for instantiating a `DataUriNormalizer` with a default MIME type guesser when the `symfony/mime` component isn't installed.
-
-Serializer
-----------
-
* Removed the `XmlEncoder::TYPE_CASE_ATTRIBUTES` constant. Use `XmlEncoder::TYPE_CAST_ATTRIBUTES` instead.
Stopwatch
diff --git a/src/Symfony/Component/Form/Resources/translations/validators.ur.xlf b/src/Symfony/Component/Form/Resources/translations/validators.ur.xlf
new file mode 100644
index 000000000000..1ec61be6d840
--- /dev/null
+++ b/src/Symfony/Component/Form/Resources/translations/validators.ur.xlf
@@ -0,0 +1,139 @@
+
+
+
+
+
+ This form should not contain extra fields.
+ اس فارم میں اضافی فیلڈز نہیں ہونی چاہئیں
+
+
+ The uploaded file was too large. Please try to upload a smaller file.
+ اپ لوڈ کردھ فائل بہت بڑی تھی۔ براہ کرم ایک چھوٹی فائل اپ لوڈ کرنے کی کوشش کریں
+
+
+ The CSRF token is invalid. Please try to resubmit the form.
+ ٹوکن غلط ہے۔ براۓ کرم فارم کو دوبارہ جمع کرانے کی کوشش کریں CSRF
+
+
+ This value is not a valid HTML5 color.
+ ر نگ نھیں ھےHTML یھ ولیو در ست
+
+
+ Please enter a valid birthdate.
+ براۓ کرم درست تاریخ پیدائش درج کریں
+
+
+ The selected choice is invalid.
+ منتخب کردہ انتخاب غلط ہے
+
+
+ The collection is invalid.
+ یھ مجموعہ غلط ہے
+
+
+ Please select a valid color.
+ براۓ کرم ایک درست رنگ منتخب کریں
+
+
+ Please select a valid country.
+ براۓ کرم ایک درست ملک منتخب کریں
+
+
+ Please select a valid currency.
+ براۓ کرم ایک درست کرنسی منتخب کریں
+
+
+ Please choose a valid date interval.
+ براۓ کرم ایک درست تاریخی وقفھہ منتخب کریں
+
+
+ Please enter a valid date and time.
+ براۓ کرم ایک درست تاریخ اور وقت درج کریں
+
+
+ Please enter a valid date.
+ براۓ کرم ایک درست تاریخ درج کریں
+
+
+ Please select a valid file.
+ براۓ کرم ایک درست فائل منتخب کریں
+
+
+ The hidden field is invalid.
+ پوشیدھہ فیلڈ غلط ہے
+
+
+ Please enter an integer.
+ براۓ کرم ایک عدد درج کریں
+
+
+ Please select a valid language.
+ براۓ کرم ایک درست زبان منتخب کریں
+
+
+ Please select a valid locale.
+ براۓ کرم ایک درست مقام منتخب کریں
+
+
+ Please enter a valid money amount.
+ براۓ کرم ایک درست رقم درج کریں
+
+
+ Please enter a number.
+ براۓ کرم ایک نمبر درج کریں
+
+
+ The password is invalid.
+ پاس ورڈ غلط ہے
+
+
+ Please enter a percentage value.
+ براہ کرم فیصد کی ويلو درج کریں
+
+
+ The values do not match.
+ ويليوذ ٹھيک نہیں ہیں
+
+
+ Please enter a valid time.
+ براۓ کرم ایک درست وقت درج کریں
+
+
+ Please select a valid timezone.
+ براۓ کرم ایک درست ٹائم زون منتخب کریں
+
+
+ Please enter a valid URL.
+ براۓ کرم ایک درست ادريس درج کریں
+
+
+ Please enter a valid search term.
+ براۓ کرم ایک درست ويلو تلاش کيلۓ درج کریں
+
+
+ Please provide a valid phone number.
+ براۓ کرم ایک درست فون نمبر فراہم کریں
+
+
+ The checkbox has an invalid value.
+ چیک باکس میں ایک غلط ويلو ہے
+
+
+ Please enter a valid email address.
+ براۓ مہربانی قابل قبول ای میل ایڈریس لکھیں
+
+
+ Please select a valid option.
+ براۓ کرم ایک درست آپشن منتخب کریں
+
+
+ Please select a valid range.
+ براۓ کرم ایک درست رینج منتخب کریں
+
+
+ Please enter a valid week.
+ براۓ کرم ایک درست ہفتہ درج کریں
+
+
+
+
diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.ur.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.ur.xlf
new file mode 100644
index 000000000000..8fd59b691b8e
--- /dev/null
+++ b/src/Symfony/Component/Security/Core/Resources/translations/security.ur.xlf
@@ -0,0 +1,83 @@
+
+
+
+
+
+ An authentication exception occurred.
+ ایک تصدیقي خرابی پیش آگئی ۓ
+
+
+ Authentication credentials could not be found.
+ درج کردھ ریکارڈ نہیں مل سکا
+
+
+ Authentication request could not be processed due to a system problem.
+ سسٹم کی خرابی کی وجہ سے تصدیق کی درخواست پر کارروائی نہیں ہو سکی
+
+
+ Invalid credentials.
+ غلط ڈیٹا
+
+
+ Cookie has already been used by someone else.
+ کوکی پہلے ہی کسی اور کے ذریعہ استعمال ہو چکی ہے
+
+
+ Not privileged to request the resource.
+ وسائل کی درخواست کرنے کا اختیار نہیں ہے
+
+
+ Invalid CSRF token.
+ ٹوکن غلط ہے CSRF
+
+
+ No authentication provider found to support the authentication token.
+ تصدیقی ٹوکن کو سپورٹ کرنے کے لیے کوئی تصدیقی کنندہ نہیں ملا
+
+
+ No session available, it either timed out or cookies are not enabled.
+ کوئی سیشن دستیاب نہیں ہے، یا تو اس کا وقت ختم ہو گیا ہے یا کوکیز فعال نہیں ہیں
+
+
+ No token could be found.
+ کوئی ٹوکن نہیں مل سکا
+
+
+ Username could not be found.
+ يوذر نہیں مل سکا
+
+
+ Account has expired.
+ اکاؤنٹ کی میعاد ختم ہو گئی ہے
+
+
+ Credentials have expired.
+ اسناد کی میعاد ختم ہو چکی ہے
+
+
+ Account is disabled.
+ اکاؤنٹ بند کر دیا گیا ہے
+
+
+ Account is locked.
+ اکاؤنٹ لاک ہے
+
+
+ Too many failed login attempts, please try again later.
+ لاگ ان کی بہت زیادہ ناکام کوششیں ہو چکی ہیں، براۓ کرم بعد میں دوبارہ کوشش کریں
+
+
+ Invalid or expired login link.
+ غلط یا ختم شدھ لاگ ان لنک
+
+
+ Too many failed login attempts, please try again in %minutes% minute.
+ منٹ باد %minutes% لاگ ان کی بہت زیادہ ناکام کوششیں ہو چکی ہیں، براۓ کرم دوبارھ کوشيش کريں
+
+
+ Too many failed login attempts, please try again in %minutes% minutes.
+ منٹ باد %minutes% لاگ ان کی بہت زیادہ ناکام کوششیں ہو چکی ہیں، براۓ کرم دوبارھ کوشيش کريں
+
+
+
+
diff --git a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
index 296f60c3ed83..163946793be0 100644
--- a/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
+++ b/src/Symfony/Component/Security/Http/Logout/LogoutUrlGenerator.php
@@ -101,6 +101,10 @@ private function generateLogoutUrl(?string $key, int $referenceType): string
$request = $this->requestStack->getCurrentRequest();
+ if (!$request) {
+ throw new \LogicException('Unable to generate the logout URL without a Request.');
+ }
+
$url = UrlGeneratorInterface::ABSOLUTE_URL === $referenceType ? $request->getUriForPath($logoutPath) : $request->getBaseUrl().$logoutPath;
if (!empty($parameters)) {
diff --git a/src/Symfony/Component/Validator/Resources/translations/validators.ur.xlf b/src/Symfony/Component/Validator/Resources/translations/validators.ur.xlf
new file mode 100644
index 000000000000..c2b114942972
--- /dev/null
+++ b/src/Symfony/Component/Validator/Resources/translations/validators.ur.xlf
@@ -0,0 +1,407 @@
+
+
+
+
+
+ This value should be false.
+ یہ ويليو غلط ہونی چاہیے
+
+
+ This value should be true.
+ یہ ويليو درست ہونی چاہیے
+
+
+ This value should be of type {{ type }}.
+ قسم کی ہونی چاہیے {{type}} يھ ويليو
+
+
+ This value should be blank.
+ یہ ويليو خالی ہونی چاہیے
+
+
+ The value you selected is not a valid choice.
+ آپ نے جو ويليو منتخب کی ہے وہ درست انتخاب نہیں ہے
+
+
+ You must select at least {{ limit }} choice.|You must select at least {{ limit }} choices.
+ کا انتخاب کرنا چاہیے {{limit}} کا انتخاب کرنا چاہیے ۔آّپ کو کم اذ کم {{limit}} آپ کو کم از کم
+
+
+ You must select at most {{ limit }} choice.|You must select at most {{ limit }} choices.
+ کا انتخاب کرنا چاہیے {{limit}} کا انتخاب کرنا چاہیے ۔آّپ کو ذيادھ سے ذيادھ {{limit}} آپ کو ذيادھ سے ذيادھ
+
+
+ One or more of the given values is invalid.
+ دی گئی ويليوذ میں سے ایک یا زیادھ ويليوذ غلط ہیں
+
+
+ This field was not expected.
+ اس فیلڈ کی توقع نہیں تھی
+
+
+ This field is missing.
+ یہ فیلڈ غائب ہے
+
+
+ This value is not a valid date.
+ یہ ويليو درست تاریخ نہیں ہے
+
+
+ This value is not a valid datetime.
+ یہ ويليو درست تاریخ وقت نہیں ہے
+
+
+ This value is not a valid email address.
+ یہ ويليو درست ای میل ایڈریس نہیں ہے
+
+
+ The file could not be found.
+ فائل نہیں مل سکی
+
+
+ The file is not readable.
+ فائل پڑھنے کے قابل نہیں ہے
+
+
+ The file is too large ({{ size }} {{ suffix }}). Allowed maximum size is {{ limit }} {{ suffix }}.
+ {{ suffix }} {{ limit }} زیادہ سے زیادہ سائز کی اجازت ہے {{ suffix }}) ({{ size }} فائل بہت بڑی ہے
+
+
+ The mime type of the file is invalid ({{ type }}). Allowed mime types are {{ types }}.
+ ہیں {{ types }} مائیم کی قسمیں ({{ type }}) فائل کی ماۂيم قسم غلط ہے
+
+
+ This value should be {{ limit }} or less.
+ یا اس سے کم ہونی چاہیے {{ limit }} یہ ويليو
+
+
+ This value is too long. It should have {{ limit }} character or less.|This value is too long. It should have {{ limit }} characters or less.
+ حروف یا اس سے کم ہونے چاہئیں {{ limit }} حرف یا اس سے کم ہونا چاہیے۔|یہ ويليو بہت لمبی ہے۔ اس میں{{ limit }} یہ ويليو بہت لمبی ہے۔ اس میں
+
+
+ This value should be {{ limit }} or more.
+ یا اس سے زیادہ ہونی چاہیے {{ limit }} یہ ويليو
+
+
+ This value is too short. It should have {{ limit }} character or more.|This value is too short. It should have {{ limit }} characters or more.
+ حروف یا اس سے زیادہ ہونے چاہئیں {{ limit }} حرف یا اس سے زیادہ ہونا چاہیے۔|یہ ويليو بہت چھوٹی ہے۔ اس میں{{ limit }} یہ ويليو بہت مختصر ہے۔ اس میں
+
+
+ This value should not be blank.
+ یہ ويليو خالی نہیں ہونی چاہیے
+
+
+ This value should not be null.
+ یہ ويليو خالی نہیں ہونی چاہیے
+
+
+ This value should be null.
+ یہ ويليو خالی ہونی چاہیے
+
+
+ This value is not valid.
+ یہ ويليو درست نہیں ہے
+
+
+ This value is not a valid time.
+ یہ ويليو درست وقت نہیں ہے
+
+
+ This value is not a valid URL.
+ نہیں ہے URL یہ ويليو درست
+
+
+ The two values should be equal.
+ دونوں ويليوذ برابر ہونی چاہئیں
+
+
+ The file is too large. Allowed maximum size is {{ limit }} {{ suffix }}.
+ {{ suffix }} {{ limit }} فائل بہت بڑی ہے۔ زیادہ سے زیادہ سائز کی اجازت ہے
+
+
+ The file is too large.
+ فائل بہت بڑی ہے
+
+
+ The file could not be uploaded.
+ فائل اپ لوڈ نہیں ہو سکی
+
+
+ This value should be a valid number.
+ یہ ويليو ایک درست نمبر ہونی چاہیے
+
+
+ This file is not a valid image.
+ یہ فائل درست تصویر نہیں ہے
+
+
+ This is not a valid IP address.
+ ایڈریس نہیں ہے IP یہ ایک درست
+
+
+ This value is not a valid language.
+ یہ ويليو درست زبان نہیں ہے
+
+
+ This value is not a valid locale.
+ یہ ويليو درست مقام نہیں ہے
+
+
+ This value is not a valid country.
+ یہ ويليو ایک درست ملک نہیں ہے
+
+
+ This value is already used.
+ یہ ويليو پہلے ہی استعمال ہو چکی ہے
+
+
+ The size of the image could not be detected.
+ تصویر کے سائز کا پتہ نہیں چل سکا
+
+
+ The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.
+ ہے {{ max_width }}px اجازت دی گئی زیادہ سے زیاد چوڑائی ({{ width }}px) تصویر کی چوڑائی بہت بڑی ہے
+
+
+ The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.
+ ہے {{ min_width }}px کم از کم چوڑائی متوقع({{ width }}px) تصویر کی چوڑائی بہت چھوٹی ہے
+
+
+ The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.
+ ہے {{ max_height }}px اجازت دی گئی زیادہ سے زیاد اونچائی ({{ height }}px) تصویر کی اونچائی بہت بڑی ہے
+
+
+ The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.
+ ہے {{ min_height }}px متوقع کم از کم اونچائی ({{ height }}px) تصویر کی اونچائی بہت چھوٹی ہے
+
+
+ This value should be the user's current password.
+ یہ ويليو صارف کا موجودہ پاس ورڈ ہونا چاہیے
+
+
+ This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.
+ حروف ہونے چاہئیں {{ limit }} حرف ہونا چاہیے۔|اس ويليو میں بالکل {{ limit }} اس ويليو میں بالکل
+
+
+ The file was only partially uploaded.
+ فائل صرف جزوی طور پر اپ لوڈ کی گئی تھی
+
+
+ No file was uploaded.
+ کوئی فائل اپ لوڈ نہیں کی گئی
+
+
+ No temporary folder was configured in php.ini.
+ میں کوئی عارضی فولڈر کنفیگر نہیں کیا گیا، یا کنفیگرڈ فولڈر موجود نہیں ہے php.ini
+
+
+ Cannot write temporary file to disk.
+ عارضی فائل کو ڈسک پر نہیں لکھا جا سکتا
+
+
+ A PHP extension caused the upload to fail.
+ پی ایچ پی کی توسیع کی وجہ سے اپ لوڈ ناکام ہو گیا
+
+
+ This collection should contain {{ limit }} element or more.|This collection should contain {{ limit }} elements or more.
+ عناصر یا اس سے زیادہ ہونا چاہیے {{ limit } عنصر یا اس سے زیادہ ہونا چاہیے۔|اس مجموعہ میں {{ limit }} اس مجموعہ میں
+
+
+ This collection should contain {{ limit }} element or less.|This collection should contain {{ limit }} elements or less.
+ عناصر یا اس سے کم ہونا چاہیے {{ limit } عنصر یا اس سے کم ہونا چاہیے۔|اس مجموعہ میں {{ limit }} اس مجموعہ میں
+
+
+ This collection should contain exactly {{ limit }} element.|This collection should contain exactly {{ limit }} elements.
+ عنصر ہونا چاہیے {{ limit }} عنصر ہونا چاہیے۔|اس مجموعے میں بالکل {{ limit }} اس مجموعہ میں بالکل
+
+
+ Invalid card number.
+ غلط کارڈ نمبر
+
+
+ Unsupported card type or invalid card number.
+ غیر تعاون یافتہ کارڈ کی قسم یا غلط کارڈ نمبر
+
+
+ This is not a valid International Bank Account Number (IBAN).
+ (IBAN)یہ ایک درست بین الاقوامی بینک اکاؤنٹ نمبر نہیں ہے
+
+
+ This value is not a valid ISBN-10.
+ نہیں ہے ISBN-10 یھ ويليو درست۔
+
+
+ This value is not a valid ISBN-13.
+ نہیں ہے ISBN-13 یھ ويليو درست۔
+
+
+ This value is neither a valid ISBN-10 nor a valid ISBN-13.
+ ISBN-13 ے اور نہ ہی درست ISBN-10 یہ ويليو نہ تو درست
+
+
+ This value is not a valid ISSN.
+ نہیں ہے ISSNیھ ويليو درست۔
+
+
+ This value is not a valid currency.
+ یہ ويليو درست کرنسی نہیں ہے
+
+
+ This value should be equal to {{ compared_value }}.
+ کے برابر ہونا چاہیے {{ compared_value }} یھ ويليو
+
+
+ This value should be greater than {{ compared_value }}.
+ سے بڈي ہوني چاہیے {{ compared_value }} یھ ويليو
+
+
+ This value should be greater than or equal to {{ compared_value }}.
+ سے بڈي یا برابر ہوني چاہیے {{ compared_value }} یھ ويليو
+
+
+ This value should be identical to {{ compared_value_type }} {{ compared_value }}.
+ {{ compared_value }} {{ compared_value_type }} یہ ويليو ایک جیسی ہونی چاہیے۔
+
+
+ This value should be less than {{ compared_value }}.
+ سے کم ہوني چاہیے {{ compared_value }} یھ ويليو
+
+
+ This value should be less than or equal to {{ compared_value }}.
+ سے کم یا برابر ہوني چاہیے {{ compared_value }} یھ ويليو
+
+
+ This value should not be equal to {{ compared_value }}.
+ کے برابر نھيں ہوني چاہیے {{ compared_value }} یھ ويليو
+
+
+ This value should not be identical to {{ compared_value_type }} {{ compared_value }}.
+ ایک جیسی نیيں ہونی چاہیے {{ compared_value }} {{ compared_value_type }} یہ ويليو
+
+
+ The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.
+ ہے {{ max_ratio }} اجازت شدہ زیادہ سے زیادہ تناسب ({{ ratio }}) تصویر کا تناسب بہت بڑا ہے
+
+
+ The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.
+ ہے{{ min_ratio }} ratio متوقع کم از کم ({{ ratio }}) بہت چھوٹا ہے ratio تصویر کا
+
+
+ The image is square ({{ width }}x{{ height }}px). Square images are not allowed.
+ مربع تصاویر کی اجازت نہیں ہے (px{{ height }}x{{ width }}) تصویر مربع ہے
+
+
+ The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.
+ زمین کی تزئین پر مبنی تصاویر کی اجازت نہیں ہے ({{ width }}x{{ height }}px) تصویر زمین کی تزئین پر مبنی ہے
+
+
+ The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.
+ پورٹریٹ پر مبنی تصاویر کی اجازت نہیں ہے ({{ width }}x{{ height }}px) تصویر پورٹریٹ پر مبنی ہے
+
+
+ An empty file is not allowed.
+ خالی فائل کی اجازت نہیں ہے
+
+
+ The host could not be resolved.
+ میزبان حل نہیں ہو سکا
+
+
+ This value does not match the expected {{ charset }} charset.
+ کے جيسي نہیں ہے charset {{ charset }} یہ ويليو متوقع
+
+
+ This is not a valid Business Identifier Code (BIC).
+ (BIC)یہ ایک درست کاروباری شناخت کنندہ کوڈ نہیں ہے
+
+
+ Error
+ خرابی
+
+
+ This is not a valid UUID.
+ نہیں ہے UUID یہ درست
+
+
+ This value should be a multiple of {{ compared_value }}.
+ کا ضرب ہوني چاہیے {{ compared_value }} یہ ويليو
+
+
+ This Business Identifier Code (BIC) is not associated with IBAN {{ iban }}.
+ سے وابستہ نہیں ہے IBAN {{ iban }} (BIC) یہ کاروباری شناختی کوڈ
+
+
+ This value should be valid JSON.
+ ہونی چاہیے JSON یہ ويليو درست
+
+
+ This collection should contain only unique elements.
+ یہ مجموعہ صرف منفرد عناصر پر مشتمل ہونا چاہیے
+
+
+ This value should be positive.
+ یہ ويليو مثبت ہونی چاہیے
+
+
+ This value should be either positive or zero.
+ یہ ويليو یا تو مثبت یا صفر ہونی چاہیے
+
+
+ This value should be negative.
+ یہ ويليو منفی ہونی چاہیے
+
+
+ This value should be either negative or zero.
+ یہ ويليو یا تو منفی یا صفر ہونی چاہیے
+
+
+ This value is not a valid timezone.
+ یہ ويليو درست ٹائم زون نہیں ہے
+
+
+ This password has been leaked in a data breach, it must not be used. Please use another password.
+ یہ پاس ورڈ ڈیٹا کی خلاف ورزی میں لیک ہو گیا ہے، اسے استعمال نہیں کرنا چاہیے۔ براۓ کرم دوسرا پاس ورڈ استعمال کریں
+
+
+ This value should be between {{ min }} and {{ max }}.
+ کے درمیان ہونی چاہیے {{ max }} اور {{ min }} یہ ويليو
+
+
+ This value is not a valid hostname.
+ نہیں ہے hostname یہ ويليو درست
+
+
+ The number of elements in this collection should be a multiple of {{ compared_value }}.
+ کی ضرب ہونی چاہیے {{ compared_value }} اس مجموعہ میں عناصر کی تعداد
+
+
+ This value should satisfy at least one of the following constraints:
+ اس ويليو کو درج ذیل رکاوٹوں میں سے کم از کم ایک کو پورا کرنا چاہیے
+
+
+ Each element of this collection should satisfy its own set of constraints.
+ اس مجموعے کے ہر عنصر کو اپنی پابندیوں کے سیٹ کو پورا کرنا چاہیے
+
+
+ This value is not a valid International Securities Identification Number (ISIN).
+ نہیں ہے (ISIN) یہ ويليو درست بین الاقوامی سیکیورٹیز شناختی نمبر
+
+
+ This value should be a valid expression.
+ یہ ويليو ایک درست اظہار ہوني چاہیے
+
+
+ This value is not a valid CSS color.
+ رنگ نہیں ہے CSS یہ ويليو درست
+
+
+ This value is not a valid CIDR notation.
+ نوٹیشن نہیں ہے CIDR یہ ويليو ایک درست
+
+
+ The value of the netmask should be between {{ min }} and {{ max }}.
+ کے درمیان ہونی چاہیے {{ max }} اور {{ min }} نیٹ ماسک کی ويليو
+
+
+
+