Skip to content

Commit 7031b61

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: [SecurityBundle] hotfix: update phpdocs on logout url [FrameworkBundle] Do not load property_access.xml if the component isn't installed Fixed a few spelling mistakes in Luxembourgish translation
2 parents 1da0ba5 + 4a4f4d2 commit 7031b61

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ public function load(array $configs, ContainerBuilder $container)
102102
$loader->load('console.xml');
103103
}
104104

105-
// Property access is used by both the Form and the Validator component
106-
$loader->load('property_access.xml');
107-
108105
// Load Cache configuration first as it is used by other components
109106
$loader->load('cache.xml');
110107

@@ -216,7 +213,7 @@ public function load(array $configs, ContainerBuilder $container)
216213
}
217214

218215
$this->registerAnnotationsConfiguration($config['annotations'], $container, $loader);
219-
$this->registerPropertyAccessConfiguration($config['property_access'], $container);
216+
$this->registerPropertyAccessConfiguration($config['property_access'], $container, $loader);
220217

221218
if ($this->isConfigEnabled($container, $config['serializer'])) {
222219
$this->registerSerializerConfiguration($config['serializer'], $container, $loader);
@@ -1124,8 +1121,14 @@ private function registerAnnotationsConfiguration(array $config, ContainerBuilde
11241121
}
11251122
}
11261123

1127-
private function registerPropertyAccessConfiguration(array $config, ContainerBuilder $container)
1124+
private function registerPropertyAccessConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
11281125
{
1126+
if (!class_exists('Symfony\Component\PropertyAccess\PropertyAccessor')) {
1127+
return;
1128+
}
1129+
1130+
$loader->load('property_access.xml');
1131+
11291132
$container
11301133
->getDefinition('property_accessor')
11311134
->replaceArgument(0, $config['magic_call'])
@@ -1156,6 +1159,11 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
11561159
$loader->load('serializer.xml');
11571160
$chainLoader = $container->getDefinition('serializer.mapping.chain_loader');
11581161

1162+
if (!class_exists('Symfony\Component\PropertyAccess\PropertyAccessor')) {
1163+
$container->removeAlias('serializer.property_accessor');
1164+
$container->removeDefinition('serializer.normalizer.object');
1165+
}
1166+
11591167
$serializerLoaders = array();
11601168
if (isset($config['enable_annotations']) && $config['enable_annotations']) {
11611169
if (!$this->annotationsConfigEnabled) {

src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ public function getToken()
236236
}
237237

238238
/**
239-
* Get the provider key (i.e. the name of the active firewall).
239+
* Get the logout URL.
240240
*
241-
* @return string The provider key
241+
* @return string The logout URL
242242
*/
243243
public function getLogoutUrl()
244244
{

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
</trans-unit>
141141
<trans-unit id="38">
142142
<source>This value is not a valid language.</source>
143-
<target>Dëse Wäert aentsprécht kenger gëlteger Sprooch.</target>
143+
<target>Dëse Wäert entsprécht kenger gëlteger Sprooch.</target>
144144
</trans-unit>
145145
<trans-unit id="39">
146146
<source>This value is not a valid locale.</source>
@@ -180,7 +180,7 @@
180180
</trans-unit>
181181
<trans-unit id="48">
182182
<source>This value should have exactly {{ limit }} character.|This value should have exactly {{ limit }} characters.</source>
183-
<target>Dëse Wäert sollt exactly {{ limit }} Buschtaf hunn.|Dëse Wäert sollt exakt {{ limit }} Buschtawen hunn.</target>
183+
<target>Dëse Wäert sollt exakt {{ limit }} Buschtaf hunn.|Dëse Wäert sollt exakt {{ limit }} Buschtawen hunn.</target>
184184
</trans-unit>
185185
<trans-unit id="49">
186186
<source>The file was only partially uploaded.</source>
@@ -192,7 +192,7 @@
192192
</trans-unit>
193193
<trans-unit id="51">
194194
<source>No temporary folder was configured in php.ini.</source>
195-
<target>Et gouf keen temporären Dossier an der php.ini konfiguréiert.</target>
195+
<target>Et gouf keen temporären Dossier an der php.ini konfiguréiert oder den temporären Dossier existéiert net.</target>
196196
</trans-unit>
197197
<trans-unit id="52">
198198
<source>Cannot write temporary file to disk.</source>
@@ -304,7 +304,7 @@
304304
</trans-unit>
305305
<trans-unit id="79">
306306
<source>The host could not be resolved.</source>
307-
<target>Den Domain-Numm konnt net opgeléist ginn.</target>
307+
<target>Den Host-Numm konnt net opgeléist ginn.</target>
308308
</trans-unit>
309309
<trans-unit id="80">
310310
<source>This value does not match the expected {{ charset }} charset.</source>

0 commit comments

Comments
 (0)