Merge branch '2.8' into 3.2

* 2.8:
  [DI] Resolve aliases earlier
  bumped Symfony version to 2.8.26
  updated VERSION for 2.8.25
  updated CHANGELOG for 2.8.25
  bumped Symfony version to 2.7.33
  updated VERSION for 2.7.32
  update CONTRIBUTORS for 2.7.32
  updated CHANGELOG for 2.7.32
This commit is contained in:
Nicolas Grekas 2017-07-18 09:52:56 +02:00
commit 30b409a295
3 changed files with 30 additions and 27 deletions

View File

@ -19,13 +19,13 @@ Symfony is the result of the work of many people who made the code better
- Ryan Weaver (weaverryan) - Ryan Weaver (weaverryan)
- Javier Eguiluz (javier.eguiluz) - Javier Eguiluz (javier.eguiluz)
- Hugo Hamon (hhamon) - Hugo Hamon (hhamon)
- Abdellatif Ait boudad (aitboudad)
- Maxime Steinhausser (ogizanagi) - Maxime Steinhausser (ogizanagi)
- Abdellatif Ait boudad (aitboudad)
- Robin Chalas (chalas_r) - Robin Chalas (chalas_r)
- Romain Neutron (romain) - Romain Neutron (romain)
- Pascal Borreli (pborreli) - Pascal Borreli (pborreli)
- Wouter De Jong (wouterj)
- Grégoire Pineau (lyrixx) - Grégoire Pineau (lyrixx)
- Wouter De Jong (wouterj)
- Joseph Bielawski (stloyd) - Joseph Bielawski (stloyd)
- Karma Dordrak (drak) - Karma Dordrak (drak)
- Lukas Kahwe Smith (lsmith) - Lukas Kahwe Smith (lsmith)
@ -35,8 +35,8 @@ Symfony is the result of the work of many people who made the code better
- Benjamin Eberlei (beberlei) - Benjamin Eberlei (beberlei)
- Igor Wiedler (igorw) - Igor Wiedler (igorw)
- Eriksen Costa (eriksencosta) - Eriksen Costa (eriksencosta)
- Jules Pietri (heah)
- Roland Franssen (ro0) - Roland Franssen (ro0)
- Jules Pietri (heah)
- Sarah Khalil (saro0h) - Sarah Khalil (saro0h)
- Guilhem Niot (energetick) - Guilhem Niot (energetick)
- Jonathan Wage (jwage) - Jonathan Wage (jwage)
@ -93,6 +93,7 @@ Symfony is the result of the work of many people who made the code better
- Maxime STEINHAUSSER - Maxime STEINHAUSSER
- Alexander M. Turek (derrabus) - Alexander M. Turek (derrabus)
- Michal Piotrowski (eventhorizon) - Michal Piotrowski (eventhorizon)
- Dany Maillard (maidmaid)
- Issei Murasawa (issei_m) - Issei Murasawa (issei_m)
- Tim Nagel (merk) - Tim Nagel (merk)
- Brice BERNARD (brikou) - Brice BERNARD (brikou)
@ -133,7 +134,6 @@ Symfony is the result of the work of many people who made the code better
- Guilherme Blanco (guilhermeblanco) - Guilherme Blanco (guilhermeblanco)
- Pablo Godel (pgodel) - Pablo Godel (pgodel)
- Jérémie Augustin (jaugustin) - Jérémie Augustin (jaugustin)
- Dany Maillard (maidmaid)
- Andréia Bohner (andreia) - Andréia Bohner (andreia)
- Rafael Dohms (rdohms) - Rafael Dohms (rdohms)
- Arnaud Kleinpeter (nanocom) - Arnaud Kleinpeter (nanocom)
@ -141,6 +141,7 @@ Symfony is the result of the work of many people who made the code better
- David Maicher (dmaicher) - David Maicher (dmaicher)
- Mikael Pajunen - Mikael Pajunen
- Joel Wurtz (brouznouf) - Joel Wurtz (brouznouf)
- Jérôme Vasseur (jvasseur)
- Grégoire Paris (greg0ire) - Grégoire Paris (greg0ire)
- Philipp Wahala (hifi) - Philipp Wahala (hifi)
- Vyacheslav Pavlov - Vyacheslav Pavlov
@ -150,7 +151,6 @@ Symfony is the result of the work of many people who made the code better
- Thomas Rabaix (rande) - Thomas Rabaix (rande)
- Rouven Weßling (realityking) - Rouven Weßling (realityking)
- Teoh Han Hui (teohhanhui) - Teoh Han Hui (teohhanhui)
- Jérôme Vasseur (jvasseur)
- Clemens Tolboom - Clemens Tolboom
- Helmer Aaviksoo - Helmer Aaviksoo
- Hiromi Hishida (77web) - Hiromi Hishida (77web)
@ -162,6 +162,7 @@ Symfony is the result of the work of many people who made the code better
- Artur Kotyrba - Artur Kotyrba
- jeremyFreeAgent (Jérémy Romey) (jeremyfreeagent) - jeremyFreeAgent (Jérémy Romey) (jeremyfreeagent)
- James Halsall (jaitsu) - James Halsall (jaitsu)
- Chris Wilkinson (thewilkybarkid)
- Warnar Boekkooi (boekkooi) - Warnar Boekkooi (boekkooi)
- Dmitrii Chekaliuk (lazyhammer) - Dmitrii Chekaliuk (lazyhammer)
- Clément JOBEILI (dator) - Clément JOBEILI (dator)
@ -175,7 +176,6 @@ Symfony is the result of the work of many people who made the code better
- Benjamin Dulau (dbenjamin) - Benjamin Dulau (dbenjamin)
- James Halsall (jaitsu) - James Halsall (jaitsu)
- Mathieu Lemoine (lemoinem) - Mathieu Lemoine (lemoinem)
- Chris Wilkinson (thewilkybarkid)
- Andreas Hucks (meandmymonkey) - Andreas Hucks (meandmymonkey)
- Noel Guilbert (noel) - Noel Guilbert (noel)
- Stepan Anchugov (kix) - Stepan Anchugov (kix)
@ -240,6 +240,7 @@ Symfony is the result of the work of many people who made the code better
- Alif Rachmawadi - Alif Rachmawadi
- Kristen Gilden (kgilden) - Kristen Gilden (kgilden)
- Pierre-Yves LEBECQ (pylebecq) - Pierre-Yves LEBECQ (pylebecq)
- Jordan Samouh (jordansamouh)
- Alex Pott - Alex Pott
- Jakub Kucharovic (jkucharovic) - Jakub Kucharovic (jkucharovic)
- Uwe Jäger (uwej711) - Uwe Jäger (uwej711)
@ -250,6 +251,7 @@ Symfony is the result of the work of many people who made the code better
- GordonsLondon - GordonsLondon
- Jan Sorgalla (jsor) - Jan Sorgalla (jsor)
- Ray - Ray
- Nikolay Labinskiy (e-moe)
- Leo Feyer - Leo Feyer
- Chekote - Chekote
- Thomas Adam - Thomas Adam
@ -276,8 +278,8 @@ Symfony is the result of the work of many people who made the code better
- Marc Weistroff (futurecat) - Marc Weistroff (futurecat)
- Christian Schmidt - Christian Schmidt
- Hidde Wieringa (hiddewie) - Hidde Wieringa (hiddewie)
- Alessandro Chitolina
- Chad Sikorra (chadsikorra) - Chad Sikorra (chadsikorra)
- Jordan Samouh (jordansamouh)
- Chris Smith (cs278) - Chris Smith (cs278)
- Florian Klein (docteurklein) - Florian Klein (docteurklein)
- Manuel Kiessling (manuelkiessling) - Manuel Kiessling (manuelkiessling)
@ -296,7 +298,6 @@ Symfony is the result of the work of many people who made the code better
- Victor Bocharsky (bocharsky_bw) - Victor Bocharsky (bocharsky_bw)
- Jan Decavele (jandc) - Jan Decavele (jandc)
- Gustavo Piltcher - Gustavo Piltcher
- Nikolay Labinskiy (e-moe)
- Stepan Tanasiychuk (stfalcon) - Stepan Tanasiychuk (stfalcon)
- Tiago Ribeiro (fixe) - Tiago Ribeiro (fixe)
- Hidde Boomsma (hboomsma) - Hidde Boomsma (hboomsma)
@ -311,6 +312,7 @@ Symfony is the result of the work of many people who made the code better
- Thomas Schulz (king2500) - Thomas Schulz (king2500)
- Dariusz Rumiński - Dariusz Rumiński
- Berny Cantos (xphere81) - Berny Cantos (xphere81)
- Thierry Thuon (lepiaf)
- Ricard Clau (ricardclau) - Ricard Clau (ricardclau)
- Mark Challoner (markchalloner) - Mark Challoner (markchalloner)
- Gregor Harlan (gharlan) - Gregor Harlan (gharlan)
@ -329,6 +331,7 @@ Symfony is the result of the work of many people who made the code better
- Inal DJAFAR (inalgnu) - Inal DJAFAR (inalgnu)
- Christian Gärtner (dagardner) - Christian Gärtner (dagardner)
- Tomasz Kowalczyk (thunderer) - Tomasz Kowalczyk (thunderer)
- Michael Babker (mbabker)
- François-Xavier de Guillebon (de-gui_f) - François-Xavier de Guillebon (de-gui_f)
- Damien Alexandre (damienalexandre) - Damien Alexandre (damienalexandre)
- Felix Labrecque - Felix Labrecque
@ -337,7 +340,6 @@ Symfony is the result of the work of many people who made the code better
- Robbert Klarenbeek (robbertkl) - Robbert Klarenbeek (robbertkl)
- Thomas Calvet (fancyweb) - Thomas Calvet (fancyweb)
- Niels Keurentjes (curry684) - Niels Keurentjes (curry684)
- Alessandro Chitolina
- JhonnyL - JhonnyL
- hossein zolfi (ocean) - hossein zolfi (ocean)
- Clément Gautier (clementgautier) - Clément Gautier (clementgautier)
@ -403,6 +405,7 @@ Symfony is the result of the work of many people who made the code better
- Olivier Dolbeau (odolbeau) - Olivier Dolbeau (odolbeau)
- Jan Rosier (rosier) - Jan Rosier (rosier)
- Thomas Royer (cydonia7) - Thomas Royer (cydonia7)
- Arturs Vonda
- Josip Kruslin - Josip Kruslin
- Asmir Mustafic (goetas) - Asmir Mustafic (goetas)
- vagrant - vagrant
@ -430,6 +433,7 @@ Symfony is the result of the work of many people who made the code better
- David Badura (davidbadura) - David Badura (davidbadura)
- Zander Baldwin - Zander Baldwin
- Adam Harvey - Adam Harvey
- Maxime Veber (nek-)
- Alex Bakhturin - Alex Bakhturin
- Alexander Obuhovich (aik099) - Alexander Obuhovich (aik099)
- boombatower - boombatower
@ -443,6 +447,7 @@ Symfony is the result of the work of many people who made the code better
- Gladhon - Gladhon
- Benoît Burnichon (bburnichon) - Benoît Burnichon (bburnichon)
- Sebastian Bergmann - Sebastian Bergmann
- Miroslav Sustek
- Pablo Díez (pablodip) - Pablo Díez (pablodip)
- Kevin McBride - Kevin McBride
- Sergio Santoro - Sergio Santoro
@ -552,7 +557,6 @@ Symfony is the result of the work of many people who made the code better
- Maxime Douailin - Maxime Douailin
- Jean Pasdeloup (pasdeloup) - Jean Pasdeloup (pasdeloup)
- Benjamin Cremer (bcremer) - Benjamin Cremer (bcremer)
- Thierry Thuon (lepiaf)
- Javier López (loalf) - Javier López (loalf)
- Reinier Kip - Reinier Kip
- Geoffrey Brier (geoffrey-brier) - Geoffrey Brier (geoffrey-brier)
@ -574,6 +578,7 @@ Symfony is the result of the work of many people who made the code better
- Alex Bogomazov (alebo) - Alex Bogomazov (alebo)
- maxime.steinhausser - maxime.steinhausser
- Stefan Warman - Stefan Warman
- Thomas Perez (scullwm)
- Tristan Maindron (tmaindron) - Tristan Maindron (tmaindron)
- Wesley Lancel - Wesley Lancel
- Ke WANG (yktd26) - Ke WANG (yktd26)
@ -582,7 +587,6 @@ Symfony is the result of the work of many people who made the code better
- Sergey Kolodyazhnyy (skolodyazhnyy) - Sergey Kolodyazhnyy (skolodyazhnyy)
- umpirski - umpirski
- Denis Brumann (dbrumann) - Denis Brumann (dbrumann)
- Michael Babker (mbabker)
- Quentin de Longraye (quentinus95) - Quentin de Longraye (quentinus95)
- Chris Heng (gigablah) - Chris Heng (gigablah)
- Richard Bradley - Richard Bradley
@ -592,7 +596,6 @@ Symfony is the result of the work of many people who made the code better
- Michael Devery (mickadoo) - Michael Devery (mickadoo)
- Antoine Corcy - Antoine Corcy
- Artur Eshenbrener - Artur Eshenbrener
- Arturs Vonda
- Sascha Grossenbacher - Sascha Grossenbacher
- Szijarto Tamas - Szijarto Tamas
- Catalin Dan - Catalin Dan
@ -622,7 +625,6 @@ Symfony is the result of the work of many people who made the code better
- develop - develop
- ReenExe - ReenExe
- Mark Sonnabaum - Mark Sonnabaum
- Maxime Veber (nek-)
- Richard Quadling - Richard Quadling
- jochenvdv - jochenvdv
- Arturas Smorgun (asarturas) - Arturas Smorgun (asarturas)
@ -671,7 +673,6 @@ Symfony is the result of the work of many people who made the code better
- Christian Soronellas (theunic) - Christian Soronellas (theunic)
- Yosmany Garcia (yosmanyga) - Yosmany Garcia (yosmanyga)
- Wouter de Wild - Wouter de Wild
- Miroslav Sustek
- Degory Valentine - Degory Valentine
- Benoit Lévêque (benoit_leveque) - Benoit Lévêque (benoit_leveque)
- Jeroen Fiege (fieg) - Jeroen Fiege (fieg)
@ -695,6 +696,7 @@ Symfony is the result of the work of many people who made the code better
- Jan Prieser - Jan Prieser
- Adrien Lucas (adrienlucas) - Adrien Lucas (adrienlucas)
- Zhuravlev Alexander (scif) - Zhuravlev Alexander (scif)
- Yanick Witschi (toflar)
- James Michael DuPont - James Michael DuPont
- Tom Klingenberg - Tom Klingenberg
- Christopher Hall (mythmakr) - Christopher Hall (mythmakr)
@ -836,7 +838,6 @@ Symfony is the result of the work of many people who made the code better
- Danilo Silva - Danilo Silva
- Zachary Tong (polyfractal) - Zachary Tong (polyfractal)
- Hryhorii Hrebiniuk - Hryhorii Hrebiniuk
- Thomas Perez (scullwm)
- Dennis Fridrich (dfridrich) - Dennis Fridrich (dfridrich)
- hamza - hamza
- dantleech - dantleech
@ -865,6 +866,7 @@ Symfony is the result of the work of many people who made the code better
- Goran Juric - Goran Juric
- Laurent Ghirardotti (laurentg) - Laurent Ghirardotti (laurentg)
- Nicolas Macherey - Nicolas Macherey
- AKeeman (akeeman)
- Lin Clark - Lin Clark
- Jeremy David (jeremy.david) - Jeremy David (jeremy.david)
- Robin Lehrmann (robinlehrmann) - Robin Lehrmann (robinlehrmann)
@ -1106,6 +1108,7 @@ Symfony is the result of the work of many people who made the code better
- Max Romanovsky (maxromanovsky) - Max Romanovsky (maxromanovsky)
- Mathieu Morlon - Mathieu Morlon
- Daniel Tschinder - Daniel Tschinder
- Alexander Schranz
- Rafał Muszyński (rafmus90) - Rafał Muszyński (rafmus90)
- Timothy Anido (xanido) - Timothy Anido (xanido)
- Rick Prent - Rick Prent
@ -1413,6 +1416,7 @@ Symfony is the result of the work of many people who made the code better
- Rosio (ben-rosio) - Rosio (ben-rosio)
- Simon Paarlberg (blamh) - Simon Paarlberg (blamh)
- Jeroen Thora (bolle) - Jeroen Thora (bolle)
- Brieuc THOMAS (brieucthomas)
- Masao Maeda (brtriver) - Masao Maeda (brtriver)
- Darius Leskauskas (darles) - Darius Leskauskas (darles)
- David Joos (djoos) - David Joos (djoos)
@ -1442,7 +1446,6 @@ Symfony is the result of the work of many people who made the code better
- Cyrille Jouineau (tuxosaurus) - Cyrille Jouineau (tuxosaurus)
- Yorkie Chadwick (yorkie76) - Yorkie Chadwick (yorkie76)
- GuillaumeVerdon - GuillaumeVerdon
- Yanick Witschi
- Ondrej Mirtes - Ondrej Mirtes
- akimsko - akimsko
- Youpie - Youpie

View File

@ -253,9 +253,6 @@ class Container implements ResettableContainerInterface
if (isset($this->privates[$id])) { if (isset($this->privates[$id])) {
@trigger_error(sprintf('Requesting the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED); @trigger_error(sprintf('Requesting the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
} }
if ('service_container' === $id) {
return $this;
}
if (isset($this->aliases[$id])) { if (isset($this->aliases[$id])) {
$id = $this->aliases[$id]; $id = $this->aliases[$id];
} }
@ -264,6 +261,9 @@ class Container implements ResettableContainerInterface
if (isset($this->services[$id])) { if (isset($this->services[$id])) {
return $this->services[$id]; return $this->services[$id];
} }
if ('service_container' === $id) {
return $this;
}
if (isset($this->loading[$id])) { if (isset($this->loading[$id])) {
throw new ServiceCircularReferenceException($id, array_keys($this->loading)); throw new ServiceCircularReferenceException($id, array_keys($this->loading));
@ -326,14 +326,14 @@ class Container implements ResettableContainerInterface
{ {
$id = strtolower($id); $id = strtolower($id);
if ('service_container' === $id) {
return false;
}
if (isset($this->aliases[$id])) { if (isset($this->aliases[$id])) {
$id = $this->aliases[$id]; $id = $this->aliases[$id];
} }
if ('service_container' === $id) {
return false;
}
return isset($this->services[$id]); return isset($this->services[$id]);
} }

View File

@ -1482,6 +1482,10 @@ EOF;
*/ */
private function getServiceCall($id, Reference $reference = null) private function getServiceCall($id, Reference $reference = null)
{ {
while ($this->container->hasAlias($id)) {
$id = (string) $this->container->getAlias($id);
}
if ('service_container' === $id) { if ('service_container' === $id) {
return '$this'; return '$this';
} }
@ -1495,10 +1499,6 @@ EOF;
return sprintf('$this->get(\'%s\', ContainerInterface::NULL_ON_INVALID_REFERENCE)', $id); return sprintf('$this->get(\'%s\', ContainerInterface::NULL_ON_INVALID_REFERENCE)', $id);
} }
if ($this->container->hasAlias($id)) {
$id = (string) $this->container->getAlias($id);
}
return sprintf('$this->get(\'%s\')', $id); return sprintf('$this->get(\'%s\')', $id);
} }