Merge branch '2.1'

* 2.1:
  [Yaml] fixed unneeded BC break
  [DependencyInjection] fixed a bug in the YAML dumper where references where not converted to the @ notation
  [Yaml] fixed typo
  updated VERSION for 2.1.7
  updated CHANGELOG for 2.1.7
  updated VERSION for 2.0.22
  update CONTRIBUTORS for 2.0.22
  updated CHANGELOG for 2.0.22

Conflicts:
	src/Symfony/Component/HttpKernel/Kernel.php
This commit is contained in:
Fabien Potencier 2013-01-17 22:22:20 +01:00
commit a04d5d6203
7 changed files with 202 additions and 70 deletions

View File

@ -7,6 +7,23 @@ in 2.0 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 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/v2.0.0...v2.0.1 To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v2.0.0...v2.0.1
* 2.0.22 (2013-01-17)
* 3c87e2e: Added Yaml\Dumper::setIndentation() method to allow a custom indentation level of nested nodes.
* ba6e315: added a way to enable/disable object support when parsing/dumping
* ac756bf: added a way to enable/disable PHP support when parsing a YAML input via Yaml::parse()
* dc2cc6b: [Console] fixed input bug when the value of an option is empty (closes #6649, closes #6689)
* 880da01: [Process] In edge cases `getcwd()` can return `false`, then `proc_open()` should get `null` to use default value (the working dir of the current PHP process)
* 1d362b8: [DependencyInjection] fixed a bug where the strict flag on references were lost (closes #6607)
* 3195122: [HttpFoundation] Check if required shell functions for `FileBinaryMimeTypeGuesser` are not disabled
* dbafc2c: [CssSelector] added css selector with empty string
* ba2d035: Restrict Monolog version to be in version <1.3
* e0923ae: [DependencyInjection] fixed PhpDumper optimizations when an inlined service depends on the current one indirectly
* cd15390: [DependencyInjection] fixed PhpDumper when an inlined service definition has some properties
* 73d9cef: [Locale] Adjust `StubIntlDateFormatter` to have new methods added in PHP 5.5
* 913b564: [Locale] Fix failing `StubIntlDateFormatter` in PHP 5.5
* 8ae773b: [Form] Fix failing `MonthChoiceList` in PHP 5.5
* 2.0.21 (2012-12-21) * 2.0.21 (2012-12-21)
* b8e5689: [FrameworkBundle] fixed ESI calls * b8e5689: [FrameworkBundle] fixed ESI calls

View File

@ -7,6 +7,53 @@ in 2.1 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 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/v2.1.0...v2.1.1 To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v2.1.0...v2.1.1
* 2.1.7 (2013-01-17)
* e17e232: [Yaml] fixed default value
* 3c87e2e: Added Yaml\Dumper::setIndentation() method to allow a custom indentation level of nested nodes.
* ba6e315: added a way to enable/disable object support when parsing/dumping
* ac756bf: added a way to enable/disable PHP support when parsing a YAML input via Yaml::parse()
* 785d365: fixes a bug when output/error output contains a % character
* dc2cc6b: [Console] fixed input bug when the value of an option is empty (closes #6649, closes #6689)
* 9257b03: [Profiler] [Redis] Fix sort of profiler rows.
* c7bfce9: Fix version_compare() calls for PHP 5.5.
* 880da01: [Process] In edge cases `getcwd()` can return `false`, then `proc_open()` should get `null` to use default value (the working dir of the current PHP process)
* 34def9f: Handle the deprecation of IntlDateFormatter::setTimeZoneId() in PHP 5.5.
* b33d5bc: removed the .gitattributes files (closes #6605, reverts #5674)
* eb93e66: [Console] Fix style escaping parsing
* 8ca1b80: [Console] Make style formatter matching less greedy to avoid having to escape when not needed
* 55aa012: [Form] Fixed EntityChoiceList when loading objects with negative integer IDs
* 1d362b8: [DependencyInjection] fixed a bug where the strict flag on references were lost (closes #6607)
* 3195122: [HttpFoundation] Check if required shell functions for `FileBinaryMimeTypeGuesser` are not disabled
* dbafc2c: [CssSelector] added css selector with empty string
* 1e2fb64: [DependencyInjection] refactored code to avoid logic duplication
* d786e09: [Console] made Application::getTerminalDimensions() public
* 8f21f89: [2.1] [Console] Added getTerminalDimensions() with fix for osx/freebsd
* 33e9d00: [Form] Deleted references in FormBuilder::getFormConfig() to improve performance
* ba2d035: Restrict Monolog version to be in version <1.3
* 4abd5bf: Restrict Monolog version to be in version `<1.3`. Because of conflict between `HttpKernel/Log/LoggerInterface` and `Psr\Log\LoggerInterface` (PSR-3)
* e0923ae: [DependencyInjection] fixed PhpDumper optimizations when an inlined service depends on the current one indirectly
* cd15390: [DependencyInjection] fixed PhpDumper when an inlined service definition has some properties
* fa6fb6f: [Process] Do not reset stdout/stderr pipes on Interrupted system call
* 73d9cef: [Locale] Adjust `StubIntlDateFormatter` to have new methods added in PHP 5.5
* d601b13: use the right RequestMatcherInterface
* 913b564: [Locale] Fix failing `StubIntlDateFormatter` in PHP 5.5
* 8ae773b: [Form] Fix failing `MonthChoiceList` in PHP 5.5
* c526ad9: [Form] Fixed inheritance of "error_bubbling" in RepeatedType
* 6c5e615: [Form] Fixed DateType when used with the intl extension disabled.
* 10b01c9: [HttpFoundation] fix return types and handling of zero in Response
* 75952af: [HttpFoundation] better fix for non-parseable Expires header date
* 87b6cc2: Fix Expires when the header is -1
* c282a2b: [DoctrineBridge] Allowing memcache port to be 0 to support memcache unix domain sockets.
* 2fc41a1: [Console] fixed unitialized properties (closes #5935)
* a5aeb21: [Process] Prevented test from failing when pcntl extension is not enabled.
* 1d395ad: Revert "[DoctrineBridge] Improved performance of the EntityType when used with the "query_builder" option"
* ef6f241: [Locale] Fixed the StubLocaleTest for ICU versions lower than 4.8.
* bfccd28: HttpUtils must handle RequestMatcher too
* 05fca6d: use preferred_choices in favor of preferred_query
* 6855cff: add preferred_query option to ModelType
* 8beee64: [Form] Fix for `DateTimeToStringTransformer`
* 2.1.6 (2012-12-21) * 2.1.6 (2012-12-21)
* b8e5689: [FrameworkBundle] fixed ESI calls * b8e5689: [FrameworkBundle] fixed ESI calls

View File

@ -10,18 +10,18 @@ Symfony2 is the result of the work of many people who made the code better
- Jordi Boggiano (seldaek) - Jordi Boggiano (seldaek)
- Johannes S (johannes) - Johannes S (johannes)
- Kris Wallsmith (kriswallsmith) - Kris Wallsmith (kriswallsmith)
- Christophe Coevoet (stof)
- Tobias Schultze (tobion) - Tobias Schultze (tobion)
- Christophe Coevoet (stof)
- Pascal Borreli (pborreli) - Pascal Borreli (pborreli)
- Karma Dordrak (drak) - Karma Dordrak (drak)
- Ryan Weaver - Ryan Weaver
- Lukas Kahwe Smith (lsmith) - Lukas Kahwe Smith (lsmith)
- Jeremy Mikola (jmikola) - Jeremy Mikola (jmikola)
- Benjamin Eberlei (beberlei)
- Igor Wiedler (igorw)
- Joseph Bielawski (stloyd) - Joseph Bielawski (stloyd)
- Eriksen Costa (eriksencosta) - Igor Wiedler (igorw)
- Benjamin Eberlei (beberlei)
- Hugo Hamon (hhamon) - Hugo Hamon (hhamon)
- Eriksen Costa (eriksencosta)
- Martin Hasoň (hason) - Martin Hasoň (hason)
- Jonathan Wage (jwage) - Jonathan Wage (jwage)
- William Durand (couac) - William Durand (couac)
@ -29,72 +29,78 @@ Symfony2 is the result of the work of many people who made the code better
- ornicar - ornicar
- stealth35 (stealth35) - stealth35 (stealth35)
- Jean-François Simon (jfsimon) - Jean-François Simon (jfsimon)
- Alexander Mols (asm89)
- Bulat Shakirzyanov (avalanche123) - Bulat Shakirzyanov (avalanche123)
- Francis Besset (francisbesset) - Francis Besset (francisbesset)
- Jakub Zalas (jakubzalas)
- Miha Vrhovnik - Miha Vrhovnik
- Henrik Bjørnskov (henrikbjorn) - Henrik Bjørnskov (henrikbjorn)
- Konstantin Kudryashov (everzet) - Konstantin Kudryashov (everzet)
- Jakub Zalas (jakubzalas) - Саша Стаменковић (umpirsky)
- Arnaud Le Blanc (arnaud-lb) - Arnaud Le Blanc (arnaud-lb)
- Eric Clemmons (ericclemmons) - Eric Clemmons (ericclemmons)
- Henrik Westphal (snc) - Henrik Westphal (snc)
- Alexander Mols (asm89)
- Deni
- Romain Neutron (romain) - Romain Neutron (romain)
- Deni
- Florin Patan (florinpatan)
- Dariusz Górecki (canni) - Dariusz Górecki (canni)
- Marc Weistroff (futurecat) - Marc Weistroff (futurecat)
- Jordan Alliot (jalliot) - Jordan Alliot (jalliot)
- Arnout Boks (aboks) - Arnout Boks (aboks)
- Саша Стаменковић (umpirsky)
- Hidenori Goto (hidenorigoto) - Hidenori Goto (hidenorigoto)
- Bilal Amarni (bamarni)
- Brandon Turner - Brandon Turner
- Andrej Hudec (pulzarraider) - Andrej Hudec (pulzarraider)
- Brikou Carré (brikou) - Brikou Carré (brikou)
- John Wards (johnwards) - John Wards (johnwards)
- Antoine Hérault (herzult) - Antoine Hérault (herzult)
- Daniel Holmes (dholmes) - Daniel Holmes (dholmes)
- Bilal Amarni (bamarni)
- Christian Raue - Christian Raue
- Tim Nagel (merk) - Tim Nagel (merk)
- Michal Piotrowski (eventhorizon) - Michal Piotrowski (eventhorizon)
- Włodzimierz Gajda (gajdaw)
- Florin Patan (florinpatan)
- lenar
- Fabien Pennequin (fabienpennequin)
- Bart van den Burg (burgov) - Bart van den Burg (burgov)
- Włodzimierz Gajda (gajdaw)
- Colin Frei
- lenar
- Lee McDermott
- Fabien Pennequin (fabienpennequin)
- excelwebzone - excelwebzone
- Toni Uebernickel (havvg)
- woodspire
- Grégoire Pineau (lyrixx)
- Mario A. Alvarez Garcia (nomack84)
- Douglas Greenshields (shieldo)
- Kevin Bond (kbond) - Kevin Bond (kbond)
- Richard Miller (mr_r_miller) - Richard Miller (mr_r_miller)
- Grégoire Pineau (lyrixx)
- Toni Uebernickel (havvg)
- Jacob Dreesen (jdreesen) - Jacob Dreesen (jdreesen)
- Douglas Greenshields (shieldo) - Michel Weimerskirch (mweimerskirch)
- Richard Shank (iampersistent) - Richard Shank (iampersistent)
- Sebastian Hörl (blogsh) - Sebastian Hörl (blogsh)
- Mario A. Alvarez Garcia (nomack84) - Fran Moreno (franmomu)
- Juti Noppornpitak - Juti Noppornpitak
- Robert Schönthal (digitalkaoz) - Robert Schönthal (digitalkaoz)
- Felix Labrecque
- Michał Pipa (michal.pipa) - Michał Pipa (michal.pipa)
- woodspire
- Daniel Gomes (danielcsgomes) - Daniel Gomes (danielcsgomes)
- Michel Weimerskirch (mweimerskirch)
- Tigran Azatyan (tigranazatyan) - Tigran Azatyan (tigranazatyan)
- Pierre Minnieur (pminnieur) - Pierre Minnieur (pminnieur)
- Larry Garfield (crell)
- Arnaud Kleinpeter (nanocom) - Arnaud Kleinpeter (nanocom)
- David Buchmann (dbu)
- Jonathan Ingram (jonathaningram) - Jonathan Ingram (jonathaningram)
- Javier Eguiluz (javier.eguiluz) - Javier Eguiluz (javier.eguiluz)
- Matthieu Ouellette-Vachon (maoueh) - Matthieu Ouellette-Vachon (maoueh)
- Larry Garfield (crell)
- Amal Raghav (kertz) - Amal Raghav (kertz)
- Artur Kotyrba - Artur Kotyrba
- Pablo Godel (pgodel) - Pablo Godel (pgodel)
- Sebastiaan Stok (sstok)
- Helmer Aaviksoo - Helmer Aaviksoo
- Gábor Egyed (1ed)
- Clément JOBEILI (dator) - Clément JOBEILI (dator)
- Julien Brochet (mewt) - Julien Brochet (mewt)
- David Buchmann (dbu) - Rafael Dohms (rdohms)
- Sebastiaan Stok (sstok) - Gordon Franke (gimler)
- Benjamin Dulau (dbenjamin) - Benjamin Dulau (dbenjamin)
- Felix Labrecque
- Andreas Hucks (meandmymonkey) - Andreas Hucks (meandmymonkey)
- Noel Guilbert (noel) - Noel Guilbert (noel)
- Jérémie Augustin (jaugustin) - Jérémie Augustin (jaugustin)
@ -102,15 +108,14 @@ Symfony2 is the result of the work of many people who made the code better
- Thomas Rabaix (rande) - Thomas Rabaix (rande)
- Dennis Benkert (denderello) - Dennis Benkert (denderello)
- Marcel Beerta (mazen) - Marcel Beerta (mazen)
- Rafael Dohms (rdohms)
- Matthieu Bontemps (mbontemps) - Matthieu Bontemps (mbontemps)
- fivestar - fivestar
- Dominique Bongiraud - Dominique Bongiraud
- Leszek Prabucki (l3l0) - Leszek Prabucki (l3l0)
- Danny Berger (dpb587) - Danny Berger (dpb587)
- Dustin Whittle (dustinwhittle) - Dustin Whittle (dustinwhittle)
- Fran Moreno (franmomu)
- jeff - jeff
- Clemens Tolboom
- Justin Hileman (bobthecow) - Justin Hileman (bobthecow)
- Sven Paulus (subsven) - Sven Paulus (subsven)
- Xavier Perez - Xavier Perez
@ -118,19 +123,16 @@ Symfony2 is the result of the work of many people who made the code better
- Ray - Ray
- Joseph Rouff (rouffj) - Joseph Rouff (rouffj)
- Albert Casademont (acasademont) - Albert Casademont (acasademont)
- Gordon Franke (gimler)
- Francois Zaninotto - Francois Zaninotto
- François Zaninotto (fzaninotto) - François Zaninotto (fzaninotto)
- Xavier Montaña Carreras (xmontana) - Xavier Montaña Carreras (xmontana)
- Gábor Egyed (1ed)
- Katsuhiro OGAWA - Katsuhiro OGAWA
- Clemens Tolboom - Peter Kokot (maastermedia)
- Alif Rachmawadi - Alif Rachmawadi
- boombatower - boombatower
- Florian Klein (docteurklein) - Florian Klein (docteurklein)
- jules boussekeyt (gordonslondon) - jules boussekeyt (gordonslondon)
- Jan Sorgalla (jsor) - Jan Sorgalla (jsor)
- Lee McDermott
- Guilherme Blanco (guilhermeblanco) - Guilherme Blanco (guilhermeblanco)
- jdhoek - jdhoek
- geoffrey - geoffrey
@ -141,7 +143,9 @@ Symfony2 is the result of the work of many people who made the code better
- Wouter Van Hecke - Wouter Van Hecke
- Gyula Sallai (salla) - Gyula Sallai (salla)
- Michael Holm (hollo) - Michael Holm (hollo)
- Peter Kokot (maastermedia) - Yaroslav Kiliba
- Andréia Bohner (andreia)
- Eric GELOEN (gelo)
- arjen - arjen
- Adrien Brault (adrienbrault) - Adrien Brault (adrienbrault)
- Manuel Kiessling (manuelkiessling) - Manuel Kiessling (manuelkiessling)
@ -150,6 +154,7 @@ Symfony2 is the result of the work of many people who made the code better
- Beau Simensen (simensen) - Beau Simensen (simensen)
- Grégoire Paris (greg0ire) - Grégoire Paris (greg0ire)
- Tamas Szijarto - Tamas Szijarto
- Thomas Adam
- Grégoire Passault (gregwar) - Grégoire Passault (gregwar)
- Aurelijus Valeiša (aurelijus) - Aurelijus Valeiša (aurelijus)
- Gustavo Piltcher - Gustavo Piltcher
@ -164,18 +169,19 @@ Symfony2 is the result of the work of many people who made the code better
- Jeanmonod David (jeanmonod) - Jeanmonod David (jeanmonod)
- Thomas Lallement (raziel057) - Thomas Lallement (raziel057)
- Niklas Fiekas - Niklas Fiekas
- Tom Van Looy (tvlooy)
- Brouznouf - Brouznouf
- Andréia Bohner (andreia)
- Sebastian Bergmann - Sebastian Bergmann
- Greg Thornton (xdissent) - Greg Thornton (xdissent)
- sun (sun) - sun (sun)
- Yaroslav Kiliba
- Lars Strojny - Lars Strojny
- Terje Bråten - Terje Bråten
- Costin Bereveanu (schniper) - Costin Bereveanu (schniper)
- Markus Lanthaler (lanthaler) - Markus Lanthaler (lanthaler)
- Jérôme Vieilledent (lolautruche)
- realmfoo - realmfoo
- Tobias Naumann - Tobias Naumann
- Ismael Ambrosi (iambrosi)
- Shein Alexey - Shein Alexey
- Joe Lencioni - Joe Lencioni
- Chekote - Chekote
@ -188,10 +194,13 @@ Symfony2 is the result of the work of many people who made the code better
- Michael Ridgway - Michael Ridgway
- Pavel Campr (pcampr) - Pavel Campr (pcampr)
- Brian King - Brian King
- Ricard Clau (ricardclau)
- Jan Schumann - Jan Schumann
- Olivier Dolbeau (odolbeau) - Olivier Dolbeau (odolbeau)
- Konstantin Myakshin (koc)
- Michele Orselli (orso) - Michele Orselli (orso)
- Asier Illarramendi (doup) - Asier Illarramendi (doup)
- Chris Heng (gigablah)
- Christoph Mewes (xrstf) - Christoph Mewes (xrstf)
- Jonas Flodén (flojon) - Jonas Flodén (flojon)
- Shigenibu Nishikawa - Shigenibu Nishikawa
@ -201,31 +210,36 @@ Symfony2 is the result of the work of many people who made the code better
- Laurent Bachelier (laurentb) - Laurent Bachelier (laurentb)
- Fabian Lange (codingfabian) - Fabian Lange (codingfabian)
- Yoshio HANAWA - Yoshio HANAWA
- Tiago Brito (blackmx)
- hossein zolfi (ocean)
- Kevin McBride - Kevin McBride
- Pablo Díez (pablodip) - Pablo Díez (pablodip)
- Michael Piecko (michael.piecko) - Michael Piecko (michael.piecko)
- Sebastian Krebs
- Manuel de Ruiter (manuel) - Manuel de Ruiter (manuel)
- ondrowan - ondrowan
- Roman Marintsenko (inori) - Roman Marintsenko (inori)
- mcben - mcben
- Jérôme Vieilledent (lolautruche) - Vicent Soria Durá (vicentgodella)
- Peter Kruithof (pkruithof) - Peter Kruithof (pkruithof)
- Eric GELOEN (gelo)
- Erik Trapman (eriktrapman) - Erik Trapman (eriktrapman)
- De Cock Xavier (xdecock) - De Cock Xavier (xdecock)
- Manuel Reinhard (sprain) - Manuel Reinhard (sprain)
- Thomas Adam
- Joel Wurtz - Joel Wurtz
- Uwe Jäger (uwej711) - Uwe Jäger (uwej711)
- Nils Adermann (naderman) - Nils Adermann (naderman)
- Leevi Graham
- sasezaki - sasezaki
- Steven Surowiec - Steven Surowiec
- Marek Kalnik (marekkalnik) - Marek Kalnik (marekkalnik)
- Denis Gorbachev (starfall)
- Chris Smith - Chris Smith
- Anthon Pang - Anthon Pang
- Eugene Leonovich
- Ryan - Ryan
- Alexander Deruwe (aderuwe) - Alexander Deruwe (aderuwe)
- Ivan Rey (ivanrey) - Ivan Rey (ivanrey)
- Jan Kramer (jankramer)
- Marcin Chyłek (songoq) - Marcin Chyłek (songoq)
- Ned Schwartz - Ned Schwartz
- Ziumin - Ziumin
@ -234,6 +248,7 @@ Symfony2 is the result of the work of many people who made the code better
- Aurélien Fredouelle - Aurélien Fredouelle
- Francesco Levorato - Francesco Levorato
- Thomas Tourlourat (armetiz) - Thomas Tourlourat (armetiz)
- jamogon
- Geoffrey Tran (geoff) - Geoffrey Tran (geoff)
- Florian Rey (nervo) - Florian Rey (nervo)
- Christian Schaefer (caefer) - Christian Schaefer (caefer)
@ -242,16 +257,20 @@ Symfony2 is the result of the work of many people who made the code better
- Ben Ramsey (ramsey) - Ben Ramsey (ramsey)
- Christian Jul Jensen - Christian Jul Jensen
- Chris Jones (leek) - Chris Jones (leek)
- vitaliytv
- Markus Bachmann (baachi) - Markus Bachmann (baachi)
- Colin Frei
- aubx - aubx
- Max Rath (drak3) - Max Rath (drak3)
- Ruben Gonzalez (rubenrua)
- Sinan Eldem
- DerManoMann - DerManoMann
- Nahuel Cuesta (ncuesta) - Nahuel Cuesta (ncuesta)
- Chris Boden (cboden) - Chris Boden (cboden)
- Roumen Damianoff (roumen) - Roumen Damianoff (roumen)
- Pierre du Plessis (pierredup)
- Åsmund Garfors
- Jeremy David (jeremy.david) - Jeremy David (jeremy.david)
- Konstantin Myakshin (koc) - Tobias Sjösten (tobiassjosten)
- Dustin Dobervich (dustin10) - Dustin Dobervich (dustin10)
- Sebastian Marek (proofek) - Sebastian Marek (proofek)
- Erkhembayar Gantulga (erheme318) - Erkhembayar Gantulga (erheme318)
@ -259,43 +278,48 @@ Symfony2 is the result of the work of many people who made the code better
- Rostyslav Kinash - Rostyslav Kinash
- jfcixmedia - jfcixmedia
- Vincent Simonin - Vincent Simonin
- Chris Heng
- yktd26 - yktd26
- Tom Van Looy (tvlooy) - Jakub Kucharovic
- umpirski - umpirski
- cedric lombardot (cedriclombardot) - cedric lombardot (cedriclombardot)
- John Kary (johnkary) - John Kary (johnkary)
- Hossein Bukhamsin - Hossein Bukhamsin
- Pierre-Yves LEBECQ (pylebecq)
- Fabrice Bernhard (fabriceb) - Fabrice Bernhard (fabriceb)
- Mark Sonnabaum - Mark Sonnabaum
- develop - develop
- hossein zolfi (ocean)
- Atsuhiro KUBO (iteman) - Atsuhiro KUBO (iteman)
- Samy Dindane (dinduks) - Samy Dindane (dinduks)
- yclian - yclian
- Jérémy Romey (jeremyfreeagent) - Jérémy Romey (jeremyfreeagent)
- Pascal Helfenstein
- Matt Daum (daum) - Matt Daum (daum)
- Baldur Rensch
- Hiromi Hishida (77web) - Hiromi Hishida (77web)
- Alex Xandra Albert Sim
- Yuen-Chi Lian - Yuen-Chi Lian
- Joshua Nye - Joshua Nye
- Sebastian Krebs
- avorobiev - avorobiev
- Stéphane PY (steph_py)
- Mark Challoner - Mark Challoner
- Andrew Tchircoff (andrewtch) - Andrew Tchircoff (andrewtch)
- BilgeXA - BilgeXA
- michaelwilliams - michaelwilliams
- Casper Valdemar Poulsen - Casper Valdemar Poulsen
- Eduardo Gulias (egulias)
- Josiah (josiah) - Josiah (josiah)
- John Bohn (jbohn) - John Bohn (jbohn)
- Nicolas Schwartz (nicoschwartz) - Nicolas Schwartz (nicoschwartz)
- Christian Soronellas Vallespí (theunic)
- Benjamin Grandfond (benjamin)
- Degory Valentine - Degory Valentine
- Krzysiek Łabuś - Krzysiek Łabuś
- Xavier Lacot (xavier) - Xavier Lacot (xavier)
- Olivier Maisonneuve - Olivier Maisonneuve
- Iwan van Staveren (istaveren)
- cgonzalez - cgonzalez
- matt foster - matt foster
- Evan S Kaufman (evanskaufman) - Evan S Kaufman (evanskaufman)
- Ismael Ambrosi (iambrosi)
- Jayson Xu (superjavason) - Jayson Xu (superjavason)
- Jan Prieser - Jan Prieser
- James Michael DuPont - James Michael DuPont
@ -304,20 +328,20 @@ Symfony2 is the result of the work of many people who made the code better
- Christopher Hall (mythmakr) - Christopher Hall (mythmakr)
- Paul Kamer (pkamer) - Paul Kamer (pkamer)
- Pierre Vanliefland (pvanliefland) - Pierre Vanliefland (pvanliefland)
- Martin Parsiegla (spea)
- Philipp Kräutli (pkraeutli) - Philipp Kräutli (pkraeutli)
- Stefano Sala (stefano.sala)
- frost-nzcr4 - frost-nzcr4
- Loïc Chardonnet (gnusat) - Loïc Chardonnet (gnusat)
- Michaël Perrin (michael.perrin) - Michaël Perrin (michael.perrin)
- Abhoryo - Abhoryo
- Fabian Vogler (fabian) - Fabian Vogler (fabian)
- Leevi Graham
- Maksim Kotlyar (makasim) - Maksim Kotlyar (makasim)
- Neil Ferreira - Neil Ferreira
- Tony Malzhacker - Tony Malzhacker
- Cyril Quintin (cyqui) - Cyril Quintin (cyqui)
- Gerard van Helden (drm) - Gerard van Helden (drm)
- Johnny Peck (johnnypeck) - Johnny Peck (johnnypeck)
- Denis Gorbachev (starfall)
- Kirill chEbba Chebunin - Kirill chEbba Chebunin
- Benjamin Leveque (benji07) - Benjamin Leveque (benji07)
- Gustavo Falco (gfalco) - Gustavo Falco (gfalco)
@ -330,23 +354,23 @@ Symfony2 is the result of the work of many people who made the code better
- grizlik - grizlik
- Derek ROTH - Derek ROTH
- Shin Ohno (ganchiku) - Shin Ohno (ganchiku)
- Jan Kramer (jankramer)
- Drew Butler (nodrew) - Drew Butler (nodrew)
- Alexander Miehe (engerim)
- Titouan Galopin (tgalopin)
- Don Pinkster - Don Pinkster
- Emil Einarsson - Emil Einarsson
- Thibault Duplessis - Thibault Duplessis
- Marc Abramowitz - Marc Abramowitz
- Mathias Rohnstock (drmonty) - Mathias Rohnstock (drmonty)
- Harry Walter (haswalt)
- Michael Roterman (wtfzdotnet) - Michael Roterman (wtfzdotnet)
- Arno Geurts - Arno Geurts
- Adán Lobato (adanlobato) - Adán Lobato (adanlobato)
- Mikhail Yurasov - Mikhail Yurasov
- jamogon
- Sam Williams - Sam Williams
- Miha Vrhovnik - Miha Vrhovnik
- Moritz Borgmann - Moritz Borgmann
- Daniel Cestari - Daniel Cestari
- Eugene Leonovich
- Karoly Negyesi (chx) - Karoly Negyesi (chx)
- Javier López (loalf) - Javier López (loalf)
- Magnus Nordlander (magnusnordlander) - Magnus Nordlander (magnusnordlander)
@ -362,29 +386,47 @@ Symfony2 is the result of the work of many people who made the code better
- Théophile Helleboid - chtitux - Théophile Helleboid - chtitux
- xaav - xaav
- Juti Noppornpitak - Juti Noppornpitak
- Mei Gwilym
- ttomor
- Sander Coolen - Sander Coolen
- Josip Kruslin - Josip Kruslin
- Manuele Menozzi
- Anton Babenko (antonbabenko) - Anton Babenko (antonbabenko)
- Irmantas Šiupšinskas (irmantas) - Irmantas Šiupšinskas (irmantas)
- dantleech
- Tero Alén (tero) - Tero Alén (tero)
- Vadim Tyukov (vatson) - Vadim Tyukov (vatson)
- Sortex - Sortex
- arjenjb - arjenjb
- chispita - chispita
- Wojciech Sznapka - Wojciech Sznapka
- Tobias Sjösten (tobiassjosten)
- Alex Bogomazov - Alex Bogomazov
- julien.galenski - julien.galenski
- Sébastien Lavoie - Sébastien Lavoie
- Per Sandström (per) - Per Sandström (per)
- Ville Mattila
- Robert Kiss (kepten) - Robert Kiss (kepten)
- Vitaliy Tverdokhlib (vitaliytv) - Vitaliy Tverdokhlib (vitaliytv)
- Martijn Evers - Martijn Evers
- Sergii Smertin (nfx)
- Nerijus Arlauskas - Nerijus Arlauskas
- Haritz Iturbe (hizai)
- SPolischook
- Diego Sapriza
- Joan Cruz
- Antoine Corcy
- inspiran
- Cristobal Dabed
- matteo giachino
- Daniel Mecke (daniel_mecke)
- Alex Demchenko (pilot)
- Tomasz Kowalczyk (thunderer)
- Vincent AUBERT (vincent)
- DerManoMann - DerManoMann
- Jochen Bayer (jocl) - Jochen Bayer (jocl)
- Jeremy Bush - Jeremy Bush
- Evan Villemez - Evan Villemez
- Dmitrii Chekaliuk
- Davide Borsatto (davide.borsatto) - Davide Borsatto (davide.borsatto)
- kaiwa - kaiwa
- Albert Ganiev (helios-ag) - Albert Ganiev (helios-ag)
@ -398,18 +440,23 @@ Symfony2 is the result of the work of many people who made the code better
- Marco - Marco
- Alberto Aldegheri - Alberto Aldegheri
- heccjj - heccjj
- Alexandre Melard
- modi - modi
- Sergey Yuferev - Sergey Yuferev
- Richard van den Brand (ricbra) - Richard van den Brand (ricbra)
- Aharon Perkel - Aharon Perkel
- Malaney J. Hill - Malaney J. Hill
- Andy Cox (ringo) - Andy Cox (ringo)
- Sebastian Göttschkes (sgoettschkes)
- Pierre Tachoire
- Balázs Benyó (duplabe) - Balázs Benyó (duplabe)
- Sebastian Utz - Sebastian Utz
- Keri Henare (kerihenare) - Keri Henare (kerihenare)
- Cédric Lahouste (rapotor) - Cédric Lahouste (rapotor)
- Anthony Ferrara
- Janusz Jablonski - Janusz Jablonski
- George Giannoulopoulos - George Giannoulopoulos
- Ilya Biryukov
- Alberto Pirovano (geezmo) - Alberto Pirovano (geezmo)
- Xavier Briand (xavierbriand) - Xavier Briand (xavierbriand)
- Evan Kaufman - Evan Kaufman
@ -417,11 +464,13 @@ Symfony2 is the result of the work of many people who made the code better
- Marcus Stöhr (dafish) - Marcus Stöhr (dafish)
- Carsten Nielsen (phreaknerd) - Carsten Nielsen (phreaknerd)
- Jay Severson - Jay Severson
- Stéphane PY (steph_py)
- Martin Eckhardt - Martin Eckhardt
- Michael Dowling (mtdowling) - Michael Dowling (mtdowling)
- Robert Queck
- mlively - mlively
- Fabian Steiner (fabstei)
- Thomas Chmielowiec (chmielot) - Thomas Chmielowiec (chmielot)
- kaywalker
- Sebastian Ionescu - Sebastian Ionescu
- Simon Neidhold - Simon Neidhold
- Kevin Dew - Kevin Dew
@ -441,26 +490,31 @@ Symfony2 is the result of the work of many people who made the code better
- Josef Cech - Josef Cech
- Andrey Esaulov (andremaha) - Andrey Esaulov (andremaha)
- hicham ELGUAROUANI (hiiimoo) - hicham ELGUAROUANI (hiiimoo)
- Stefan Koopmanschap (skoop)
- Ivan Kurnosov - Ivan Kurnosov
- stloyd - stloyd
- Martin Parsiegla (spea)
- Chris Tickner (tickner) - Chris Tickner (tickner)
- Luis Muñoz - Luis Muñoz
- Thomas Chmielowiec - Thomas Chmielowiec
- Oleg Zinchenko - Oleg Zinchenko
- Benjamin Grandfond (benjamin)
- Christoph Nissle (derstoffel) - Christoph Nissle (derstoffel)
- Stefano Sala (stefano.sala)
- Xavier HAUSHERR - Xavier HAUSHERR
- Benjamin Zikarsky - Benjamin Zikarsky
- Romain Dorgueil - Romain Dorgueil
- Patrick Allaert
- Grayson Koonce (breerly) - Grayson Koonce (breerly)
- Andy Stanberry - Andy Stanberry
- alefranz - alefranz
- alsar
- efeen
- Bob den Otter (bopp)
- Simone Fumagalli (hpatoio)
- Alessio Baglio (ioalessio) - Alessio Baglio (ioalessio)
- Jérôme Macias (jeromemacias) - Jérôme Macias (jeromemacias)
- Jordi Llonch (jordillonch)
- Cédric Dugat (ph3nol) - Cédric Dugat (ph3nol)
- Philip Dahlstrøm (phidah) - Philip Dahlstrøm (phidah)
- Robin Duval (robin-duval)
- Artem Lopata (bumz) - Artem Lopata (bumz)
- Alexey Popkov - Alexey Popkov
- Artyom Protaskin - Artyom Protaskin
@ -470,12 +524,12 @@ Symfony2 is the result of the work of many people who made the code better
- gedrox - gedrox
- hirocaster - hirocaster
- Andrey Chernykh - Andrey Chernykh
- Alexander Miehe (engerim) - François Pluchino
- Jörn Lang (j.lang) - Jörn Lang (j.lang)
- Jan Marek (janmarek) - Jan Marek (janmarek)
- Dan Patrick (mdpatrick) - Dan Patrick (mdpatrick)
- Pierre-Yves LEBECQ (pylebecq)
- Rares Vlaseanu (raresvla) - Rares Vlaseanu (raresvla)
- tante kinast (tante)
- Tugdual Saunier (tucksaun) - Tugdual Saunier (tucksaun)
- Alexander Zogheb - Alexander Zogheb
- Florian Pfitzer - Florian Pfitzer
@ -493,14 +547,15 @@ Symfony2 is the result of the work of many people who made the code better
- Robert Campbell - Robert Campbell
- Matt Lehner - Matt Lehner
- cyrillej - cyrillej
- Haritz
- Grummfy - Grummfy
- Eduardo Gulias
- Rowan Manning - Rowan Manning
- David Windell - David Windell
- Gabriel Birke - Gabriel Birke
- Alan Chen - Alan Chen
- Maerlyn - Maerlyn
- Even André Fiskvik - Even André Fiskvik
- Rafał Wrzeszcz
- Frédéric Hardy - Frédéric Hardy
- Lenar Lõhmus - Lenar Lõhmus
- Cristian Gonzalez - Cristian Gonzalez
@ -516,13 +571,16 @@ Symfony2 is the result of the work of many people who made the code better
- Kévin Dunglas (dunglas) - Kévin Dunglas (dunglas)
- Vincent Composieux (eko) - Vincent Composieux (eko)
- Osman Üngür (import) - Osman Üngür (import)
- Jorge Martin (jorgemartind)
- giulio de donato (liuggio) - giulio de donato (liuggio)
- Matthew Davis (mdavis1982) - Matthew Davis (mdavis1982)
- Matthias Pigulla (mpdude) - Matthias Pigulla (mpdude)
- Pablo Monterde Perez (plebs)
- Jimmy Leger (redpanda) - Jimmy Leger (redpanda)
- Baptiste Clavié (talus) - Baptiste Clavié (talus)
- Yanick Witschi - Yanick Witschi
- Till Klampaeckel - Till Klampaeckel
- srsbiz
- Nicolas A. Bérard-Nault - Nicolas A. Bérard-Nault
- Saem Ghani - Saem Ghani
- Alexey Popkov - Alexey Popkov
@ -530,6 +588,7 @@ Symfony2 is the result of the work of many people who made the code better
- Elnur Abdurrakhimov - Elnur Abdurrakhimov
- Arnaud Buathier (arnapou) - Arnaud Buathier (arnapou)
- chesteroni (chesteroni) - chesteroni (chesteroni)
- Simon CONSTANS (kosssi)
- Mauricio Lopez (sanctuary29) - Mauricio Lopez (sanctuary29)
- Wotre - Wotre
- goohib - goohib
@ -537,11 +596,13 @@ Symfony2 is the result of the work of many people who made the code better
- Lars Vierbergen - Lars Vierbergen
- Sylvain Lorinet - Sylvain Lorinet
- jc - jc
- BenjaminBeck
- Vladimir Sazhin - Vladimir Sazhin
- Vyacheslav Slinko - Vyacheslav Slinko
- Johannes - Johannes
- Jörg Rühl - Jörg Rühl
- patrick-mcdougle - patrick-mcdougle
- andreabreu98
- Michael Schneider - Michael Schneider
- Jerome Tamarelle - Jerome Tamarelle
- xanido - xanido
@ -549,6 +610,7 @@ Symfony2 is the result of the work of many people who made the code better
- Samuel Laulhau - Samuel Laulhau
- Oleg Stepura - Oleg Stepura
- James Michael DuPont - James Michael DuPont
- Tammy D
- Ondrej Slinták - Ondrej Slinták
- vlechemin - vlechemin
- Skorney - Skorney
@ -557,6 +619,7 @@ Symfony2 is the result of the work of many people who made the code better
- djama - djama
- Sébastien HOUZE - Sébastien HOUZE
- Abdulkadir N. A. - Abdulkadir N. A.
- Sema
- Thorsten Hallwas - Thorsten Hallwas
- Vincent - Vincent
- Chris Smith - Chris Smith
@ -564,6 +627,8 @@ Symfony2 is the result of the work of many people who made the code better
- David Soria Parra - David Soria Parra
- Sergiy Sokolenko - Sergiy Sokolenko
- Penny Leach - Penny Leach
- Gábor Fási
- oscartv
- Philipp Rieber - Philipp Rieber
- DanSync - DanSync
- Peter Zwosta - Peter Zwosta
@ -573,6 +638,7 @@ Symfony2 is the result of the work of many people who made the code better
- dorkitude - dorkitude
- tirnanog06 - tirnanog06
- Besnik Br - Besnik Br
- Alex Olmos (alexolmos)
- Juan Ases García (ases) - Juan Ases García (ases)
- Bernd Matzner (bmatzner) - Bernd Matzner (bmatzner)
- Chris Sedlmayr (catchamonkey) - Chris Sedlmayr (catchamonkey)
@ -587,21 +653,27 @@ Symfony2 is the result of the work of many people who made the code better
- Yohan Giarelli (frequence-web) - Yohan Giarelli (frequence-web)
- Massimiliano Arione (garak) - Massimiliano Arione (garak)
- Vladislav Krupenkin (ideea) - Vladislav Krupenkin (ideea)
- Emanuele Gaspari (inmarelibero)
- joris de wit (jdewit) - joris de wit (jdewit)
- Jérémy CROMBEZ (jeremy) - Jérémy CROMBEZ (jeremy)
- Jorge Maiden (jorgemaiden)
- Justin Rainbow (jrainbow) - Justin Rainbow (jrainbow)
- Sébastien Armand (khepin) - Sébastien Armand (khepin)
- Krzysztof Menżyk (krymen) - Krzysztof Menżyk (krymen)
- Martin Ledgard (le6o)
- Matthieu Moquet (mattketmo) - Matthieu Moquet (mattketmo)
- Matt Drollette (mdrollette) - Matt Drollette (mdrollette)
- Florent CAILHOL (ooflorent) - Florent CAILHOL (ooflorent)
- Petr Jaroš (petajaros) - Petr Jaroš (petajaros)
- Philipp Hoffmann (philipphoffmann)
- Alex Carol (picard89)
- Daniel Perez Pinazo (pitiflautico) - Daniel Perez Pinazo (pitiflautico)
- Ruud Kamphuis (ruudk) - Ruud Kamphuis (ruudk)
- Sebastian Busch (sebu) - Sebastian Busch (sebu)
- Simon Terrien (sterrien) - Simon Terrien (sterrien)
- Markus Tacker (tacker) - Markus Tacker (tacker)
- Tyler Stroud (tystr) - Tyler Stroud (tystr)
- Víctor Mateo (victormateo)
- Eugene Babushkin (warl) - Eugene Babushkin (warl)
- Florent Cailhol - Florent Cailhol
- craigmarvelley - craigmarvelley

View File

@ -184,11 +184,7 @@ class YamlDumper extends Dumper
return ''; return '';
} }
if ($this->container->isFrozen()) { $parameters = $this->prepareParameters($this->container->getParameterBag()->all(), $this->container->isFrozen());
$parameters = $this->prepareParameters($this->container->getParameterBag()->all());
} else {
$parameters = $this->container->getParameterBag()->all();
}
return $this->dumper->dump(array('parameters' => $parameters), 2); return $this->dumper->dump(array('parameters' => $parameters), 2);
} }
@ -258,12 +254,12 @@ class YamlDumper extends Dumper
* *
* @return array * @return array
*/ */
private function prepareParameters($parameters) private function prepareParameters($parameters, $escape = true)
{ {
$filtered = array(); $filtered = array();
foreach ($parameters as $key => $value) { foreach ($parameters as $key => $value) {
if (is_array($value)) { if (is_array($value)) {
$value = $this->prepareParameters($value); $value = $this->prepareParameters($value, $escape);
} elseif ($value instanceof Reference) { } elseif ($value instanceof Reference) {
$value = '@'.$value; $value = '@'.$value;
} }
@ -271,7 +267,7 @@ class YamlDumper extends Dumper
$filtered[$key] = $value; $filtered[$key] = $value;
} }
return $this->escape($filtered); return $escape ? $this->escape($filtered) : $filtered;
} }
/** /**

View File

@ -40,13 +40,13 @@ class Dumper
* *
* @param mixed $input The PHP value * @param mixed $input The PHP value
* @param integer $inline The level where you switch to inline YAML * @param integer $inline The level where you switch to inline YAML
* @param integer $indent The level of indentation (used internally)
* @param Boolean $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise * @param Boolean $exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
* @param Boolean $objectSupport true if object support is enabled, false otherwise * @param Boolean $objectSupport true if object support is enabled, false otherwise
* @param integer $indent The level of indentation (used internally)
* *
* @return string The YAML representation of the PHP value * @return string The YAML representation of the PHP value
*/ */
public function dump($input, $inline = 0, $exceptionOnInvalidType = false, $objectSupport = false, $indent = 0) public function dump($input, $inline = 0, $indent = 0, $exceptionOnInvalidType = false, $objectSupport = false)
{ {
$output = ''; $output = '';
$prefix = $indent ? str_repeat(' ', $indent) : ''; $prefix = $indent ? str_repeat(' ', $indent) : '';
@ -63,7 +63,7 @@ class Dumper
$prefix, $prefix,
$isAHash ? Inline::dump($key, $exceptionOnInvalidType, $objectSupport).':' : '-', $isAHash ? Inline::dump($key, $exceptionOnInvalidType, $objectSupport).':' : '-',
$willBeInlined ? ' ' : "\n", $willBeInlined ? ' ' : "\n",
$this->dump($value, $inline - 1, $exceptionOnInvalidType, $objectSupport, $willBeInlined ? 0 : $indent + $this->indentation) $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $exceptionOnInvalidType, $objectSupport)
).($willBeInlined ? "\n" : ''); ).($willBeInlined ? "\n" : '');
} }
} }

View File

@ -154,7 +154,7 @@ EOF;
public function testObjectSupportEnabled() public function testObjectSupportEnabled()
{ {
$dump = $this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, false, true); $dump = $this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, 0, false, true);
$this->assertEquals('{ foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\A":1:{s:1:"a";s:3:"foo";}, bar: 1 }', $dump, '->dump() is able to dump objects'); $this->assertEquals('{ foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\A":1:{s:1:"a";s:3:"foo";}, bar: 1 }', $dump, '->dump() is able to dump objects');
} }
@ -171,7 +171,7 @@ EOF;
*/ */
public function testObjectSupportDisabledWithExceptions() public function testObjectSupportDisabledWithExceptions()
{ {
$this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, true, false); $this->dumper->dump(array('foo' => new A(), 'bar' => 1), 0, 0, true, false);
} }
} }

View File

@ -149,11 +149,11 @@ class Yaml
* *
* @api * @api
*/ */
public static function dump($array, $inline = 2, $indent = 4, $exceptionOnInvalidType = false, $objectSupport = false) public static function dump($array, $inline = 2, $indent = 2, $exceptionOnInvalidType = false, $objectSupport = false)
{ {
$yaml = new Dumper(); $yaml = new Dumper();
$yaml->setIndentation($indent); $yaml->setIndentation($indent);
return $yaml->dump($array, $inline, $exceptionOnInvalidType, $objectSupport); return $yaml->dump($array, $inline, 0, $exceptionOnInvalidType, $objectSupport);
} }
} }