Fabien Potencier
ba6e3159c0
added a way to enable/disable object support when parsing/dumping
...
By default, object support is disabled, and instead of throwing an
exception when an object is handled, null is returned.
If you do need object support, enable it via:
Yaml::dump($data, false, true);
If you want an exception to be thrown in case an invalid type is handled
(a PHP resource or a PHP object), pass true as the second argument:
Yaml::dump($data, true, true);
The same can be done when parsing:
Yaml::parse($data, 2, false, true);
2013-01-17 16:07:25 +01:00
Drak
788cc2c7ef
Nsdocblocks
2012-10-20 09:10:30 +02:00
Fabien Potencier
a1b73887f7
[Yaml] fixed parsing when a mapping is mixed within a sequence and vice-versa ( closes #4634 )
2012-07-01 11:19:53 +02:00
Fabien Potencier
41621e42e9
fixed phpdoc @param alignment
2012-05-15 22:19:31 +02:00
Fabien Potencier
ce9791246b
fixed phpdoc @param alignment
2012-05-15 18:56:32 +02:00
Włodzimierz Gajda
80a2a92edb
[2.1][Component][Yaml] fix 4022
2012-05-08 09:18:55 +02:00
Kris Wallsmith
fe62401907
optimized string starts with checks
...
Doing this with strpos() is slightly faster than substr().
2012-01-11 11:33:56 -08:00
Fabien Potencier
4316595dbb
fixed CS
2011-12-18 14:42:59 +01:00
Fabien Potencier
12a852e18b
[Yaml] made a small optimization
2011-08-22 15:06:47 +02:00
Fabien Potencier
06614cd6ca
[Yaml] moved exceptions to their own sub-namespace (added a specific exception for the dump)
2011-06-14 16:25:26 +02:00
Fabien Potencier
3859589daa
[Yaml] renamed load() to parse()
2011-06-14 16:25:25 +02:00
Fabien Potencier
62e4342a86
fixed CS
2011-06-08 12:12:55 +02:00
Fabien Potencier
e1347e788e
[Yaml] tweaked error message
2011-05-14 17:37:28 +02:00
Martin Schuhfuss
571768b9b9
[Yaml] added exceptions when non-utf8 encoding is detected
...
encoding is detected using the `mb_detect_encoding()`-function
in strict-mode. Checking is done before the parsing starts.
Without this patch, the calls to `preg_replace()` using the
'u'-modifier would cause the non-utf8-string being processed
to be empty when parsing starts which makes the parsing return
no result.
2011-05-12 22:02:56 +02:00
Fabien Potencier
94c445957c
[Yaml] moved most protected methods and properties to private
2011-03-08 20:33:19 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Pascal Borreli
5b819261c2
[Yaml] Removed useless else
2011-02-27 18:36:38 +01:00
Jordi Boggiano
3fbe366df2
[Yaml] Fix warning
2011-02-18 12:08:05 +01:00
Hugo Hamon
b5972f3447
[Yaml] fix some php documentation
2011-02-13 17:48:48 +01:00
Lukas Kahwe Smith
dd71501f54
some fixes by just "blindly" trying to make phpStorm code analysis happier
2011-02-04 19:30:28 +01:00
Lukas Kahwe Smith
ddea635a51
fixes else -> } else
2011-01-19 07:20:23 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Fabien Potencier
6e18a2c529
[Yaml] fixed parsing of simple inline documents
2010-11-29 21:09:02 +01:00
Kris Wallsmith
f79e23ffb5
Removed all those spaces after @author that were bothering me so…
2010-10-18 16:55:41 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00