Merge branch '3.4'

* 3.4:
  [DI] Resolve aliases earlier
  [DI] Mark Container::$privates as internal
  [DI] Minor dumping logic simplification
  bumped Symfony version to 3.3.6
  updated VERSION for 3.3.5
  updated CHANGELOG for 3.3.5
  bumped Symfony version to 3.2.13
  updated VERSION for 3.2.12
  updated CHANGELOG for 3.2.12
  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 10:02:14 +02:00
commit 75701bc378
5 changed files with 81 additions and 28 deletions

View File

@ -7,6 +7,22 @@ in 3.2 minor versions.
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v3.2.0...v3.2.1
* 3.2.12 (2017-07-17)
* bug #23549 [PropertyInfo] conflict for phpdocumentor/reflection-docblock 3.2 (xabbuh)
* security #23507 [Security] validate empty passwords again (xabbuh)
* bug #23526 [HttpFoundation] Set meta refresh time to 0 in RedirectResponse content (jnvsor)
* bug #23540 Disable inlining deprecated services (alekitto)
* bug #23468 [DI] Handle root namespace in service definitions (ro0NL)
* bug #23256 [Security] Fix authentication.failure event not dispatched on AccountStatusException (chalasr)
* bug #23461 Use rawurlencode() to transform the Cookie into a string (javiereguiluz)
* bug #23459 [TwigBundle] allow to configure custom formats in XML configs (xabbuh)
* bug #23460 Don't display the Symfony debug toolbar when printing the page (javiereguiluz)
* bug #23469 [FrameworkBundle] do not wire namespaces for the ArrayAdapter (xabbuh)
* bug #23417 [DI][Security] Prevent unwanted deprecation notices when using Expression Languages (dunglas)
* bug #23261 Fixed absolute url generation for query strings and hash urls (alexander-schranz)
* bug #23398 [Filesystem] Dont copy perms when origin is remote (nicolas-grekas)
* 3.2.11 (2017-07-05)
* bug #23390 [Cache] Handle APCu failures gracefully (nicolas-grekas)

View File

@ -7,6 +7,32 @@ in 3.3 minor versions.
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v3.3.0...v3.3.1
* 3.3.5 (2017-07-17)
* bug #23549 [PropertyInfo] conflict for phpdocumentor/reflection-docblock 3.2 (xabbuh)
* bug #23513 [FrameworkBundle] Set default public directory on install assets (yceruto)
* security #23507 [Security] validate empty passwords again (xabbuh)
* bug #23526 [HttpFoundation] Set meta refresh time to 0 in RedirectResponse content (jnvsor)
* bug #23535 Make server:* commands work out of the box with the public/ root dir (fabpot)
* bug #23540 Disable inlining deprecated services (alekitto)
* bug #23498 [Process] Fixed issue between process builder and exec (lyrixx)
* bug #23490 [DependencyInjection] non-conflicting anonymous service ids across files (xabbuh)
* bug #23468 [DI] Handle root namespace in service definitions (ro0NL)
* bug #23477 [Process] Fix parsing args on Windows (nicolas-grekas)
* bug #23256 [Security] Fix authentication.failure event not dispatched on AccountStatusException (chalasr)
* bug #23461 Use rawurlencode() to transform the Cookie into a string (javiereguiluz)
* bug #23465 [HttpKernel][VarDumper] Truncate profiler data & optim perf (nicolas-grekas)
* bug #23457 [FrameworkBundle] check _controller attribute is a string before parsing it (alekitto)
* bug #23459 [TwigBundle] allow to configure custom formats in XML configs (xabbuh)
* bug #23460 Don't display the Symfony debug toolbar when printing the page (javiereguiluz)
* bug #23469 [FrameworkBundle] do not wire namespaces for the ArrayAdapter (xabbuh)
* bug #23434 [DotEnv] Fix variable substitution (brieucthomas)
* bug #23426 Fixed HttpOnly flag when using Cookie::fromString() (Toflar)
* bug #22439 [DX] [TwigBundle] Enhance the new exception page design (sustmi)
* bug #23417 [DI][Security] Prevent unwanted deprecation notices when using Expression Languages (dunglas)
* bug #23261 Fixed absolute url generation for query strings and hash urls (alexander-schranz)
* bug #23398 [Filesystem] Dont copy perms when origin is remote (nicolas-grekas)
* 3.3.4 (2017-07-05)
* bug #23413 [VarDumper] Reduce size of serialized Data objects (nicolas-grekas)

View File

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

View File

@ -47,10 +47,14 @@ class Container implements ResettableContainerInterface
protected $services = array();
protected $methodMap = array();
protected $privates = array();
protected $aliases = array();
protected $loading = array();
/**
* @internal
*/
protected $privates = array();
private $envCache = array();
private $compiled = false;
@ -184,15 +188,15 @@ class Container implements ResettableContainerInterface
if (isset($this->privates[$id])) {
return false;
}
if ('service_container' === $id) {
return true;
}
if (isset($this->aliases[$id])) {
$id = $this->aliases[$id];
}
if (isset($this->services[$id])) {
return true;
}
if ('service_container' === $id) {
return true;
}
if (isset($this->methodMap[$id])) {
return true;
@ -227,9 +231,6 @@ class Container implements ResettableContainerInterface
return;
}
if ('service_container' === $id) {
return $this;
}
if (isset($this->aliases[$id])) {
$id = $this->aliases[$id];
}
@ -238,6 +239,9 @@ class Container implements ResettableContainerInterface
if (isset($this->services[$id])) {
return $this->services[$id];
}
if ('service_container' === $id) {
return $this;
}
if (isset($this->loading[$id])) {
throw new ServiceCircularReferenceException($id, array_keys($this->loading));
@ -289,10 +293,6 @@ class Container implements ResettableContainerInterface
*/
public function initialized($id)
{
if ('service_container' === $id) {
return false;
}
if (isset($this->privates[$id])) {
return false;
}
@ -301,6 +301,10 @@ class Container implements ResettableContainerInterface
$id = $this->aliases[$id];
}
if ('service_container' === $id) {
return false;
}
return isset($this->services[$id]);
}

View File

@ -1527,6 +1527,10 @@ EOF;
*/
private function getServiceCall($id, Reference $reference = null)
{
while ($this->container->hasAlias($id)) {
$id = (string) $this->container->getAlias($id);
}
if ('service_container' === $id) {
return '$this';
}
@ -1543,7 +1547,7 @@ EOF;
$code = sprintf('$this->get(\'%s\')', $id);
}
if ($this->container->hasDefinition($id) && (!$this->container->getDefinition($id)->isPublic() || $this->container->getDefinition($id)->isShared())) {
if ($this->container->hasDefinition($id) && $this->container->getDefinition($id)->isShared()) {
$code = "(\$this->services['$id'] ?? $code)";
}