Skip to content

Commit 0c27c77

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: switch images from bitnami/* to bitnamilegacy/* Update Arabic translations for video and image validation messages, native translations [Mailer] Fix memory leak with `mailer.message_logger_listener` fix documentation link
2 parents d83abf0 + 93d6aba commit 0c27c77

File tree

6 files changed

+43
-35
lines changed

6 files changed

+43
-35
lines changed

.github/workflows/integration-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
env:
3535
POSTGRES_PASSWORD: 'password'
3636
ldap:
37-
image: bitnami/openldap
37+
image: bitnamilegacy/openldap
3838
ports:
3939
- 3389:3389
4040
env:
@@ -74,15 +74,15 @@ jobs:
7474
env:
7575
STANDALONE: 1
7676
redis-sentinel:
77-
image: bitnami/redis-sentinel:6.2.8
77+
image: bitnamilegacy/redis-sentinel:6.2.8
7878
ports:
7979
- 26379:26379
8080
env:
8181
REDIS_MASTER_HOST: redis
8282
REDIS_MASTER_SET: redis_sentinel
8383
REDIS_SENTINEL_QUORUM: 1
8484
redis-primary:
85-
image: bitnami/redis:latest
85+
image: bitnamilegacy/redis:latest
8686
ports:
8787
- 16381:6379
8888
env:
@@ -91,7 +91,7 @@ jobs:
9191
options: >-
9292
--name=redis-primary
9393
redis-replica:
94-
image: bitnami/redis:latest
94+
image: bitnamilegacy/redis:latest
9595
ports:
9696
- 16382:6379
9797
env:
@@ -128,7 +128,7 @@ jobs:
128128
zookeeper:
129129
image: zookeeper
130130
kafka:
131-
image: bitnami/kafka:3.7
131+
image: bitnamilegacy/kafka:3.7
132132
ports:
133133
- 9092:9092
134134
env:
@@ -218,7 +218,7 @@ jobs:
218218
php -i
219219
220220
- name: Load fixtures
221-
uses: docker://bitnami/openldap
221+
uses: docker://bitnamilegacy/openldap
222222
with:
223223
entrypoint: /bin/bash
224224
args: -c "(/opt/bitnami/openldap/bin/ldapwhoami -H ldap://ldap:3389 -D cn=admin,dc=symfony,dc=com -w symfony||sleep 5) && /opt/bitnami/openldap/bin/ldapadd -H ldap://ldap:3389 -D cn=admin,dc=symfony,dc=com -w symfony -f src/Symfony/Component/Ldap/Tests/Fixtures/data/fixtures.ldif && /opt/bitnami/openldap/bin/ldapdelete -H ldap://ldap:3389 -D cn=admin,dc=symfony,dc=com -w symfony cn=a,ou=users,dc=symfony,dc=com"

src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Symfony\Component\Mailer\EventListener\DkimSignedMessageListener;
1616
use Symfony\Component\Mailer\EventListener\EnvelopeListener;
1717
use Symfony\Component\Mailer\EventListener\MessageListener;
18-
use Symfony\Component\Mailer\EventListener\MessageLoggerListener;
1918
use Symfony\Component\Mailer\EventListener\MessengerTransportListener;
2019
use Symfony\Component\Mailer\EventListener\SmimeEncryptedMessageListener;
2120
use Symfony\Component\Mailer\EventListener\SmimeSignedMessageListener;
@@ -72,10 +71,6 @@
7271
])
7372
->tag('kernel.event_subscriber')
7473

75-
->set('mailer.message_logger_listener', MessageLoggerListener::class)
76-
->tag('kernel.event_subscriber')
77-
->tag('kernel.reset', ['method' => 'reset'])
78-
7974
->set('mailer.messenger_transport_listener', MessengerTransportListener::class)
8075
->tag('kernel.event_subscriber')
8176

src/Symfony/Bundle/FrameworkBundle/Resources/config/mailer_debug.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@
1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

1414
use Symfony\Component\Mailer\DataCollector\MessageDataCollector;
15+
use Symfony\Component\Mailer\EventListener\MessageLoggerListener;
1516

1617
return static function (ContainerConfigurator $container) {
1718
$container->services()
19+
->set('mailer.message_logger_listener', MessageLoggerListener::class)
20+
->args([
21+
service('profiler.is_disabled_state_checker')->nullOnInvalid(),
22+
])
23+
->tag('kernel.event_subscriber')
24+
->tag('kernel.reset', ['method' => 'reset'])
25+
1826
->set('mailer.data_collector', MessageDataCollector::class)
1927
->args([
2028
service('mailer.message_logger_listener'),

src/Symfony/Component/Mailer/EventListener/MessageLoggerListener.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ class MessageLoggerListener implements EventSubscriberInterface, ResetInterface
2525
{
2626
private MessageEvents $events;
2727

28-
public function __construct()
29-
{
28+
public function __construct(
29+
protected ?\Closure $disabled = null,
30+
) {
3031
$this->events = new MessageEvents();
3132
}
3233

@@ -37,6 +38,10 @@ public function reset(): void
3738

3839
public function onMessage(MessageEvent $event): void
3940
{
41+
if ($this->disabled?->__invoke()) {
42+
return;
43+
}
44+
4045
$this->events->add($event);
4146
}
4247

src/Symfony/Component/ObjectMapper/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ facilitating the mapping using attributes.
77
Resources
88
---------
99

10-
* [Documentation](https://symfony.com/doc/current/components/object-mapper.html)
10+
* [Documentation](https://symfony.com/doc/current/object_mapper.html)
1111
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
1212
* [Report issues](https://github.com/symfony/symfony/issues) and
1313
[send Pull Requests](https://github.com/symfony/symfony/pulls)

src/Symfony/Component/Validator/Resources/translations/validators.ar.xlf

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -472,87 +472,87 @@
472472
</trans-unit>
473473
<trans-unit id="122">
474474
<source>This file is not a valid video.</source>
475-
<target state="needs-review-translation">هذا الملف ليس فيديو صالحًا.</target>
475+
<target>هذا الملف غير صالح كفيديو.</target>
476476
</trans-unit>
477477
<trans-unit id="123">
478478
<source>The size of the video could not be detected.</source>
479-
<target state="needs-review-translation">تعذّر اكتشاف حجم الفيديو.</target>
479+
<target>تعذّر تحديد حجم الفيديو.</target>
480480
</trans-unit>
481481
<trans-unit id="124">
482482
<source>The video width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.</source>
483-
<target state="needs-review-translation">عرض الفيديو كبير جدًا ({{ width }}px). الحد الأقصى المسموح للعرض هو {{ max_width }}px.</target>
483+
<target>عرض الفيديو كبير جدًا ({{ width }}px). الحد الأقصى المسموح للعرض هو {{ max_width }}px.</target>
484484
</trans-unit>
485485
<trans-unit id="125">
486486
<source>The video width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.</source>
487-
<target state="needs-review-translation">عرض الفيديو صغير جدًا ({{ width }}px). العرض الأدنى المتوقع هو {{ min_width }} بكسل.</target>
487+
<target>عرض الفيديو صغير جدًا ({{ width }}px). العرض الأدنى المتوقع هو {{ min_width }} بكسل.</target>
488488
</trans-unit>
489489
<trans-unit id="126">
490490
<source>The video height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.</source>
491-
<target state="needs-review-translation">ارتفاع الفيديو كبير جدًا ({{ height }}px). الحد الأقصى المسموح للارتفاع هو {{ max_height }}px.</target>
491+
<target>ارتفاع الفيديو كبير جدًا ({{ height }}px). الحد الأقصى المسموح للارتفاع هو {{ max_height }}px.</target>
492492
</trans-unit>
493493
<trans-unit id="127">
494494
<source>The video height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.</source>
495-
<target state="needs-review-translation">ارتفاع الفيديو صغير جدًا ({{ height }} بكسل). الارتفاع الأدنى المتوقع هو {{ min_height }} بكسل.</target>
495+
<target>ارتفاع الفيديو صغير جدًا ({{ height }} بكسل). الارتفاع الأدنى المتوقع هو {{ min_height }} بكسل.</target>
496496
</trans-unit>
497497
<trans-unit id="128">
498498
<source>The video has too few pixels ({{ pixels }} pixels). Minimum amount expected is {{ min_pixels }} pixels.</source>
499-
<target state="needs-review-translation">الفيديو يحتوي على عدد قليل جدًا من البكسلات ({{ pixels }}). الحد الأدنى المتوقع هو {{ min_pixels }}.</target>
499+
<target>الفيديو منخفض الجودة جداً ({{ pixels }} بكسل). الحد الأدنى المتوقع هو {{ min_pixels }} بكسل.</target>
500500
</trans-unit>
501501
<trans-unit id="129">
502502
<source>The video has too many pixels ({{ pixels }} pixels). Maximum amount expected is {{ max_pixels }} pixels.</source>
503-
<target state="needs-review-translation">الفيديو يحتوي على عدد كبير جدًا من البكسلات ({{ pixels }}). الحد الأقصى المتوقع هو {{ max_pixels }}.</target>
503+
<target>دقة الفيديو مرتفعة جداً ({{ pixels }} بكسل). الحد الأقصى المتوقع هو {{ max_pixels }} بكسل.</target>
504504
</trans-unit>
505505
<trans-unit id="130">
506506
<source>The video ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.</source>
507-
<target state="needs-review-translation">نسبة الفيديو كبيرة جدًا ({{ ratio }}). الحد الأقصى المسموح للنسبة هو {{ max_ratio }}.</target>
507+
<target>نسبة أبعاد الفيديو كبيرة جدًا ({{ ratio }}). أعلى نسبة متوقعة هي {{ max_ratio }}.</target>
508508
</trans-unit>
509509
<trans-unit id="131">
510510
<source>The video ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.</source>
511-
<target state="needs-review-translation">نسبة الفيديو صغيرة جدًا ({{ ratio }}). النسبة الدنيا المتوقعة هي {{ min_ratio }}.</target>
511+
<target>نسبة أبعاد الفيديو صغيرة جدًا ({{ ratio }}). أقل نسبة متوقعة هي {{ min_ratio }}.</target>
512512
</trans-unit>
513513
<trans-unit id="132">
514514
<source>The video is square ({{ width }}x{{ height }}px). Square videos are not allowed.</source>
515-
<target state="needs-review-translation">الفيديو مربع ({{ width }}x{{ height }}px). مقاطع الفيديو المربعة غير مسموح بها.</target>
515+
<target>الفيديو مربع ({{ width }}x{{ height }}px). مقاطع الفيديو ذات الشكل المربع غير مسموح بها.</target>
516516
</trans-unit>
517517
<trans-unit id="133">
518518
<source>The video is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented videos are not allowed.</source>
519-
<target state="needs-review-translation">الفيديو بوضعية أفقية ({{ width }}x{{ height }} بكسل). مقاطع الفيديو الأفقية غير مسموح بها.</target>
519+
<target>الفيديو بوضعية أفقية ({{ width }}x{{ height }} بكسل). مقاطع الفيديو الأفقية غير مسموح بها.</target>
520520
</trans-unit>
521521
<trans-unit id="134">
522522
<source>The video is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented videos are not allowed.</source>
523-
<target state="needs-review-translation">الفيديو ذو اتجاه عمودي ({{ width }}x{{ height }} بكسل). مقاطع الفيديو ذات الاتجاه العمودي غير مسموح بها.</target>
523+
<target>الفيديو ذو اتجاه عمودي ({{ width }}x{{ height }} بكسل). مقاطع الفيديو ذات الاتجاه العمودي غير مسموح بها.</target>
524524
</trans-unit>
525525
<trans-unit id="135">
526526
<source>The video file is corrupted.</source>
527-
<target state="needs-review-translation">ملف الفيديو تالف.</target>
527+
<target>ملف الفيديو تالف.</target>
528528
</trans-unit>
529529
<trans-unit id="136">
530530
<source>The video contains multiple streams. Only one stream is allowed.</source>
531-
<target state="needs-review-translation">يحتوي الفيديو على عدة تدفقات. يُسمح بتدفق واحد فقط.</target>
531+
<target>الفيديو يحتوي على عدة مسارات (صوت أو صورة)، ومسموح بمسار واحد فقط.</target>
532532
</trans-unit>
533533
<trans-unit id="137">
534534
<source>Unsupported video codec "{{ codec }}".</source>
535-
<target state="needs-review-translation">برنامج ترميز فيديو غير مدعوم "{{ codec }}".</target>
535+
<target>الترميز المستخدم في الفيديو غير مدعوم. "{{ codec }}".</target>
536536
</trans-unit>
537537
<trans-unit id="138">
538538
<source>Unsupported video container "{{ container }}".</source>
539-
<target state="needs-review-translation">حاوية فيديو غير مدعومة "{{ container }}".</target>
539+
<target>ملف الفيديو بصيغة غير مدعومة "{{ container }}".</target>
540540
</trans-unit>
541541
<trans-unit id="139">
542542
<source>The image file is corrupted.</source>
543-
<target state="needs-review-translation">ملف الصورة تالف.</target>
543+
<target>ملف الصورة تالف.</target>
544544
</trans-unit>
545545
<trans-unit id="140">
546546
<source>The image has too few pixels ({{ pixels }} pixels). Minimum amount expected is {{ min_pixels }} pixels.</source>
547-
<target state="needs-review-translation">تحتوي الصورة على عدد قليل جدًا من البكسلات ({{ pixels }}). الحد الأدنى المتوقع هو {{ min_pixels }}.</target>
547+
<target>الصورة منخفضة الجودة جدًا ({{ pixels }} بكسل)، و الحد الأدنى المتوقع: {{ min_pixels }} بكسل.</target>
548548
</trans-unit>
549549
<trans-unit id="141">
550550
<source>The image has too many pixels ({{ pixels }} pixels). Maximum amount expected is {{ max_pixels }} pixels.</source>
551-
<target state="needs-review-translation">تحتوي الصورة على عدد كبير جدا من البكسلات ({{ pixels }}). العدد الأقصى المتوقع هو {{ max_pixels }}.</target>
551+
<target>جودة الصورة مرتفعة جدًا ({{ pixels }} بكسل). العدد الأقصى المتوقع هو {{ max_pixels }} بكسل.</target>
552552
</trans-unit>
553553
<trans-unit id="142">
554554
<source>This filename does not match the expected charset.</source>
555-
<target state="needs-review-translation">اسم الملف هذا لا يطابق مجموعة المحارف المتوقعة.</target>
555+
<target>اسم الملف يحتوي على أحرف غير مسموح بها.</target>
556556
</trans-unit>
557557
</body>
558558
</file>

0 commit comments

Comments
 (0)