Commit 4858bfa
committed
minor #64139 [Translation] Improve
This PR was merged into the 8.1 branch.
Discussion
----------
[Translation] Improve `LocoProvider::delete`
| Q | A
| ------------- | ---
| Branch? | 8.1
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | N/A
| License | MIT
The previous implementation deleted every asset from the default locale’s catalogue domains.
This PR deletes every asset present in the catalogue, which should speed things quite a bit.
Commits
-------
3d54c0b [Translation] Improve `LocoProvider::delete`LocoProvider::delete (MatTheCat)2 files changed
+27-34Lines changed: 27 additions & 34 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/Symfony/Component/Translation/Bridge/Loco
- Tests
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/Symfony/Component/Translation/Bridge/Loco/LocoProvider.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Bridge/Loco/LocoProvider.php+27-13Lines changed: 27 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
184 | 184 | |
185 | 185 | |
186 | 186 | |
187 | | - |
| 187 | + |
| 188 | + |
188 | 189 | |
189 | | - |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
190 | 197 | |
191 | | - |
192 | | - |
193 | | - |
| 198 | + |
| 199 | + |
| 200 | + |
194 | 201 | |
195 | 202 | |
196 | 203 | |
197 | | - |
198 | | - |
199 | | - |
200 | | - |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
201 | 216 | |
202 | | - |
203 | | - |
| 217 | + |
204 | 218 | |
205 | | - |
206 | | - |
| 219 | + |
| 220 | + |
207 | 221 | |
208 | 222 | |
209 | 223 | |
|
Collapse file
src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Bridge/Loco/Tests/LocoProviderTest.php-21Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
839 | 839 | |
840 | 840 | |
841 | 841 | |
842 | | - |
843 | | - |
844 | | - |
845 | | - |
846 | | - |
847 | | - |
848 | | - |
849 | 842 | |
850 | 843 | |
851 | 844 | |
852 | 845 | |
853 | 846 | |
854 | 847 | |
855 | | - |
856 | | - |
857 | | - |
858 | | - |
859 | | - |
860 | | - |
861 | | - |
862 | 848 | |
863 | 849 | |
864 | 850 | |
| ||
884 | 870 | |
885 | 871 | |
886 | 872 | |
887 | | - |
888 | | - |
889 | | - |
890 | | - |
891 | | - |
892 | | - |
893 | | - |
894 | 873 | |
895 | 874 | |
896 | 875 | |
|
0 commit comments