Skip to content

Commit b77d6d9

Browse files
Merge branch '2.8' into 3.1
* 2.8: Compatibility with Twig 1.27 [VarDumper] Fix dumping Twig source in stack traces Enhance GAE compat by removing some realpath() bumped Symfony version to 2.8.14 updated VERSION for 2.8.13 updated CHANGELOG for 2.8.13 bumped Symfony version to 2.7.21 updated VERSION for 2.7.20 update CONTRIBUTORS for 2.7.20 updated CHANGELOG for 2.7.20 [SecurityBundle] Fix twig-bridge lowest dep
2 parents a70e033 + d12f269 commit b77d6d9

File tree

21 files changed

+84
-64
lines changed

21 files changed

+84
-64
lines changed

CONTRIBUTORS.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ Symfony is the result of the work of many people who made the code better
3333
- Igor Wiedler (igorw)
3434
- Grégoire Pineau (lyrixx)
3535
- Eriksen Costa (eriksencosta)
36-
- Sarah Khalil (saro0h)
3736
- Jules Pietri (heah)
37+
- Sarah Khalil (saro0h)
3838
- Maxime Steinhausser (ogizanagi)
3939
- Jonathan Wage (jwage)
4040
- Diego Saint Esteben (dosten)
@@ -49,13 +49,13 @@ Symfony is the result of the work of many people who made the code better
4949
- Henrik Bjørnskov (henrikbjorn)
5050
- Miha Vrhovnik
5151
- Diego Saint Esteben (dii3g0)
52+
- Robin Chalas (chalas_r)
5253
- Ener-Getick (energetick)
5354
- Konstantin Kudryashov (everzet)
5455
- Bilal Amarni (bamarni)
5556
- Florin Patan (florinpatan)
5657
- Peter Rehm (rpet)
5758
- Iltar van der Berg (kjarli)
58-
- Robin Chalas (chalas_r)
5959
- Kevin Bond (kbond)
6060
- Andrej Hudec (pulzarraider)
6161
- Gábor Egyed (1ed)
@@ -69,32 +69,34 @@ Symfony is the result of the work of many people who made the code better
6969
- Henrik Westphal (snc)
7070
- Dariusz Górecki (canni)
7171
- Douglas Greenshields (shieldo)
72+
- Konstantin Myakshin (koc)
7273
- Lee McDermott
7374
- Brandon Turner
7475
- Luis Cordova (cordoval)
7576
- Graham Campbell (graham)
7677
- Titouan Galopin (tgalopin)
7778
- Daniel Holmes (dholmes)
7879
- Pierre du Plessis (pierredup)
79-
- Konstantin Myakshin (koc)
8080
- Bart van den Burg (burgov)
8181
- Jordan Alliot (jalliot)
8282
- John Wards (johnwards)
8383
- Toni Uebernickel (havvg)
8484
- Fran Moreno (franmomu)
8585
- Antoine Hérault (herzult)
8686
- Paráda József (paradajozsef)
87+
- Jáchym Toušek (enumag)
8788
- Arnaud Le Blanc (arnaud-lb)
8889
- Jérôme Tamarelle (gromnan)
8990
- Michal Piotrowski (eventhorizon)
9091
- Tim Nagel (merk)
92+
- Dariusz Ruminski
9193
- Brice BERNARD (brikou)
9294
- Alexander M. Turek (derrabus)
93-
- Dariusz Ruminski
9495
- marc.weistroff
9596
- Issei Murasawa (issei_m)
9697
- lenar
9798
- Włodzimierz Gajda (gajdaw)
99+
- Roland Franssen (ro0)
98100
- Baptiste Clavié (talus)
99101
- Alexander Schwenn (xelaris)
100102
- Florian Voutzinos (florianv)
@@ -104,8 +106,6 @@ Symfony is the result of the work of many people who made the code better
104106
- Peter Kokot (maastermedia)
105107
- excelwebzone
106108
- Jacob Dreesen (jdreesen)
107-
- Jáchym Toušek (enumag)
108-
- Roland Franssen (ro0)
109109
- Jérémy DERUSSÉ (jderusse)
110110
- Vladimir Reznichenko (kalessil)
111111
- Tomáš Votruba (tomas_votruba)
@@ -131,6 +131,7 @@ Symfony is the result of the work of many people who made the code better
131131
- Andréia Bohner (andreia)
132132
- Rafael Dohms (rdohms)
133133
- Arnaud Kleinpeter (nanocom)
134+
- jwdeitch
134135
- Joel Wurtz (brouznouf)
135136
- Philipp Wahala (hifi)
136137
- Vyacheslav Pavlov
@@ -139,6 +140,7 @@ Symfony is the result of the work of many people who made the code better
139140
- Thomas Rabaix (rande)
140141
- Vincent AUBERT (vincent)
141142
- Rouven Weßling (realityking)
143+
- Teoh Han Hui (teohhanhui)
142144
- Mikael Pajunen
143145
- Clemens Tolboom
144146
- Helmer Aaviksoo
@@ -149,7 +151,6 @@ Symfony is the result of the work of many people who made the code better
149151
- Amal Raghav (kertz)
150152
- Jonathan Ingram (jonathaningram)
151153
- Artur Kotyrba
152-
- Teoh Han Hui (teohhanhui)
153154
- Warnar Boekkooi (boekkooi)
154155
- Dmitrii Chekaliuk (lazyhammer)
155156
- Clément JOBEILI (dator)
@@ -159,10 +160,12 @@ Symfony is the result of the work of many people who made the code better
159160
- Richard Miller (mr_r_miller)
160161
- Mario A. Alvarez Garcia (nomack84)
161162
- Dennis Benkert (denderello)
163+
- jeremyFreeAgent (Jérémy Romey) (jeremyfreeagent)
162164
- Benjamin Dulau (dbenjamin)
163165
- Mathieu Lemoine (lemoinem)
164166
- Andreas Hucks (meandmymonkey)
165167
- Noel Guilbert (noel)
168+
- Lars Strojny (lstrojny)
166169
- Yonel Ceruto González (yonelceruto)
167170
- Stepan Anchugov (kix)
168171
- bronze1man
@@ -185,13 +188,11 @@ Symfony is the result of the work of many people who made the code better
185188
- Michele Orselli (orso)
186189
- Tom Van Looy (tvlooy)
187190
- Sven Paulus (subsven)
188-
- Lars Strojny (lstrojny)
189191
- Rui Marinho (ruimarinho)
190192
- Daniel Espendiller
191193
- Dawid Nowak
192194
- Eugene Wissner
193195
- Julien Brochet (mewt)
194-
- jeremyFreeAgent (jeremyfreeagent)
195196
- Sergey Linnik (linniksa)
196197
- Michaël Perrin (michael.perrin)
197198
- Marcel Beerta (mazen)
@@ -226,6 +227,7 @@ Symfony is the result of the work of many people who made the code better
226227
- Jakub Kucharovic (jkucharovic)
227228
- Eugene Leonovich (rybakit)
228229
- Filippo Tessarotto
230+
- Tristan Darricau (nicofuma)
229231
- Joseph Rouff (rouffj)
230232
- Félix Labrecque (woodspire)
231233
- GordonsLondon
@@ -262,7 +264,6 @@ Symfony is the result of the work of many people who made the code better
262264
- Oleg Voronkovich
263265
- Manuel Kiessling (manuelkiessling)
264266
- Daniel Wehner
265-
- Tristan Darricau (nicofuma)
266267
- Atsuhiro KUBO (iteman)
267268
- Andrew Moore (finewolf)
268269
- Bertrand Zuchuat (garfield-fr)
@@ -387,6 +388,7 @@ Symfony is the result of the work of many people who made the code better
387388
- Ariel Ferrandini (aferrandini)
388389
- Dirk Pahl (dirkaholic)
389390
- cedric lombardot (cedriclombardot)
391+
- David Maicher (dmaicher)
390392
- Jonas Flodén (flojon)
391393
- Christian Schmidt
392394
- Marcin Sikoń (marphi)
@@ -535,6 +537,7 @@ Symfony is the result of the work of many people who made the code better
535537
- Daisuke Ohata
536538
- Vincent Simonin
537539
- Alex Bogomazov (alebo)
540+
- maxime.steinhausser
538541
- Stefan Warman
539542
- Tristan Maindron (tmaindron)
540543
- Ke WANG (yktd26)
@@ -546,11 +549,11 @@ Symfony is the result of the work of many people who made the code better
546549
- Ulumuddin Yunus (joenoez)
547550
- Luc Vieillescazes (iamluc)
548551
- Johann Saunier (prophet777)
552+
- Michael Devery (mickadoo)
549553
- Antoine Corcy
550554
- Artur Eshenbrener
551555
- Arturs Vonda
552556
- Sascha Grossenbacher
553-
- David Maicher (dmaicher)
554557
- Szijarto Tamas
555558
- Catalin Dan
556559
- Stephan Vock
@@ -593,6 +596,7 @@ Symfony is the result of the work of many people who made the code better
593596
- Vladyslav Petrovych
594597
- Alex Xandra Albert Sim
595598
- Carson Full
599+
- Andrey Astakhov (aast)
596600
- Trent Steel (trsteel88)
597601
- Yuen-Chi Lian
598602
- Besnik Br
@@ -602,12 +606,14 @@ Symfony is the result of the work of many people who made the code better
602606
- avorobiev
603607
- Venu
604608
- Lars Vierbergen
609+
- Jonatan Männchen
605610
- Dennis Hotson
606611
- Andrew Tchircoff (andrewtch)
607612
- michaelwilliams
608613
- 1emming
609614
- Victor Bocharsky (bocharsky_bw)
610615
- Leevi Graham (leevigraham)
616+
- Jordan Deitch
611617
- Casper Valdemar Poulsen
612618
- Josiah (josiah)
613619
- Joschi Kuphal
@@ -740,6 +746,7 @@ Symfony is the result of the work of many people who made the code better
740746
- Alexandru Furculita (afurculita)
741747
- Ben Ramsey (ramsey)
742748
- Christian Jul Jensen
749+
- Alexandre GESLIN (alexandregeslin)
743750
- The Whole Life to Learn
744751
- Farhad Safarov
745752
- Liverbool (liverbool)
@@ -870,12 +877,14 @@ Symfony is the result of the work of many people who made the code better
870877
- James Gilliland
871878
- Rhodri Pugh (rodnaph)
872879
- David de Boer (ddeboer)
880+
- Klaus Purer
873881
- Gilles Doge (gido)
874882
- abulford
875883
- antograssiot
876884
- Brooks Boyd
877885
- Roger Webb
878886
- Dmitriy Simushev
887+
- Ivo Bathke (ivoba)
879888
- Max Voloshin (maxvoloshin)
880889
- Nicolas Fabre (nfabre)
881890
- Raul Rodriguez (raul782)
@@ -964,7 +973,6 @@ Symfony is the result of the work of many people who made the code better
964973
- ChrisC
965974
- Ilya Biryukov
966975
- Kim Laï Trinh
967-
- Jonatan Männchen
968976
- Jason Desrosiers
969977
- m.chwedziak
970978
- Philip Frank
@@ -994,7 +1002,6 @@ Symfony is the result of the work of many people who made the code better
9941002
- Emmanuel Vella (emmanuel.vella)
9951003
- Carsten Nielsen (phreaknerd)
9961004
- Mathieu Rochette
997-
- maxime.steinhausser
9981005
- Jay Severson
9991006
- René Kerner
10001007
- Nathaniel Catchpole
@@ -1044,7 +1051,6 @@ Symfony is the result of the work of many people who made the code better
10441051
- Benjamin Bender
10451052
- Konrad Mohrfeldt
10461053
- Lance Chen
1047-
- Andrey Astakhov (aast)
10481054
- Andrew (drew)
10491055
- Nikolay Labinskiy (e-moe)
10501056
- kor3k kor3k (kor3k)
@@ -1055,6 +1061,7 @@ Symfony is the result of the work of many people who made the code better
10551061
- Mephistofeles
10561062
- Hoffmann András
10571063
- Olivier
1064+
- Wesley Lancel
10581065
- pscheit
10591066
- Zdeněk Drahoš
10601067
- Dan Harper
@@ -1160,6 +1167,7 @@ Symfony is the result of the work of many people who made the code better
11601167
- JakeFr
11611168
- Simon Sargeant
11621169
- efeen
1170+
- Muhammed Akbulut
11631171
- Michał Dąbrowski (defrag)
11641172
- Simone Fumagalli (hpatoio)
11651173
- Brian Graham (incognito)
@@ -1176,6 +1184,7 @@ Symfony is the result of the work of many people who made the code better
11761184
- Artem Lopata (bumz)
11771185
- Nicole Cordes
11781186
- Alexey Popkov
1187+
- Gijs Kunze
11791188
- Artyom Protaskin
11801189
- Nathanael d. Noblet
11811190
- helmer
@@ -1445,6 +1454,7 @@ Symfony is the result of the work of many people who made the code better
14451454
- Matthias Althaus
14461455
- Michaël VEROUX
14471456
- Julia
1457+
- Lin Lu
14481458
- arduanov
14491459
- sualko
14501460
- Nicolas Roudaire

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ protected function setMappingDriverConfig(array $mappingConfig, $mappingName)
134134
throw new \InvalidArgumentException(sprintf('Invalid Doctrine mapping path given. Cannot load Doctrine mapping/bundle named "%s".', $mappingName));
135135
}
136136

137-
if (substr($mappingDirectory, 0, 7) !== 'phar://') {
138-
$mappingDirectory = realpath($mappingDirectory);
139-
}
140-
$this->drivers[$mappingConfig['type']][$mappingConfig['prefix']] = $mappingDirectory;
137+
$this->drivers[$mappingConfig['type']][$mappingConfig['prefix']] = realpath($mappingDirectory) ?: $mappingDirectory;
141138
}
142139

143140
/**

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function updateValidatorMappingFiles(ContainerBuilder $container, $mappi
6161
foreach ($container->getParameter('kernel.bundles') as $bundle) {
6262
$reflection = new \ReflectionClass($bundle);
6363
if (is_file($file = dirname($reflection->getFileName()).'/'.$validationPath)) {
64-
$files[] = realpath($file);
64+
$files[] = $file;
6565
$container->addResource(new FileResource($file));
6666
}
6767
}

src/Symfony/Bridge/Twig/Translation/TwigExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function extract($resource, MessageCatalogue $catalogue)
6464
if ($file instanceof SplFileInfo) {
6565
$e->setTemplateName($file->getRelativePathname());
6666
} elseif ($file instanceof \SplFileInfo) {
67-
$e->setTemplateName($file->getRealPath());
67+
$e->setTemplateName($file->getRealPath() ?: $file->getPathname());
6868
}
6969

7070
throw $e;

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class FrameworkExtension extends Extension
5858
*/
5959
public function load(array $configs, ContainerBuilder $container)
6060
{
61-
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
61+
$loader = new XmlFileLoader($container, new FileLocator(dirname(__DIR__).'/Resources/config'));
6262

6363
$loader->load('web.xml');
6464
$loader->load('services.xml');
@@ -686,7 +686,7 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
686686
if (class_exists('Symfony\Component\Security\Core\Exception\AuthenticationException')) {
687687
$r = new \ReflectionClass('Symfony\Component\Security\Core\Exception\AuthenticationException');
688688

689-
$dirs[] = dirname($r->getFileName()).'/../Resources/translations';
689+
$dirs[] = dirname(dirname($r->getFileName())).'/Resources/translations';
690690
}
691691
$rootDir = $container->getParameter('kernel.root_dir');
692692
foreach ($container->getParameter('kernel.bundles') as $bundle => $class) {
@@ -811,21 +811,21 @@ private function getValidatorMappingFiles(ContainerBuilder $container)
811811
$dirname = dirname($reflection->getFileName());
812812

813813
if (is_file($file = $dirname.'/Resources/config/validation.xml')) {
814-
$files[0][] = realpath($file);
814+
$files[0][] = $file;
815815
$container->addResource(new FileResource($file));
816816
}
817817

818818
if (is_file($file = $dirname.'/Resources/config/validation.yml')) {
819-
$files[1][] = realpath($file);
819+
$files[1][] = $file;
820820
$container->addResource(new FileResource($file));
821821
}
822822

823823
if (is_dir($dir = $dirname.'/Resources/config/validation')) {
824824
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
825-
$files[0][] = $file->getRealPath();
825+
$files[0][] = $file->getPathname();
826826
}
827827
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
828-
$files[1][] = $file->getRealPath();
828+
$files[1][] = $file->getPathname();
829829
}
830830

831831
$container->addResource(new DirectoryResource($dir));
@@ -948,15 +948,15 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
948948
$dirname = dirname($reflection->getFileName());
949949

950950
if (is_file($file = $dirname.'/Resources/config/serialization.xml')) {
951-
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array(realpath($file)));
951+
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file));
952952
$definition->setPublic(false);
953953

954954
$serializerLoaders[] = $definition;
955955
$container->addResource(new FileResource($file));
956956
}
957957

958958
if (is_file($file = $dirname.'/Resources/config/serialization.yml')) {
959-
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array(realpath($file)));
959+
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file));
960960
$definition->setPublic(false);
961961

962962
$serializerLoaders[] = $definition;
@@ -965,13 +965,13 @@ private function registerSerializerConfiguration(array $config, ContainerBuilder
965965

966966
if (is_dir($dir = $dirname.'/Resources/config/serialization')) {
967967
foreach (Finder::create()->files()->in($dir)->name('*.xml') as $file) {
968-
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file->getRealPath()));
968+
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\XmlFileLoader', array($file->getPathname()));
969969
$definition->setPublic(false);
970970

971971
$serializerLoaders[] = $definition;
972972
}
973973
foreach (Finder::create()->files()->in($dir)->name('*.yml') as $file) {
974-
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file->getRealPath()));
974+
$definition = new Definition('Symfony\Component\Serializer\Mapping\Loader\YamlFileLoader', array($file->getPathname()));
975975
$definition->setPublic(false);
976976

977977
$serializerLoaders[] = $definition;
@@ -1094,7 +1094,7 @@ private function getKernelRootHash(ContainerBuilder $container)
10941094
*/
10951095
public function getXsdValidationBasePath()
10961096
{
1097-
return __DIR__.'/../Resources/config/schema';
1097+
return dirname(__DIR__).'/Resources/config/schema';
10981098
}
10991099

11001100
public function getNamespace()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,11 @@ public function testValidationPaths()
398398
// Testing symfony/framework-bundle with deps=high
399399
$this->assertStringEndsWith('symfony'.DIRECTORY_SEPARATOR.'form/Resources/config/validation.xml', $xmlMappings[0]);
400400
}
401-
$this->assertStringEndsWith('TestBundle'.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'validation.xml', $xmlMappings[1]);
401+
$this->assertStringEndsWith('TestBundle/Resources/config/validation.xml', $xmlMappings[1]);
402402

403403
$yamlMappings = $calls[4][1][0];
404404
$this->assertCount(1, $yamlMappings);
405-
$this->assertStringEndsWith('TestBundle'.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'validation.yml', $yamlMappings[0]);
405+
$this->assertStringEndsWith('TestBundle/Resources/config/validation.yml', $yamlMappings[0]);
406406
}
407407

408408
public function testValidationNoStaticMethod()

0 commit comments

Comments
 (0)