Lines Matching refs:Yaml

12 namespace Symfony\Component\Yaml;
14 use Symfony\Component\Yaml\Exception\DumpException;
15 use Symfony\Component\Yaml\Exception\ParseException;
16 use Symfony\Component\Yaml\Tag\TaggedValue;
39 self::$exceptionOnInvalidType = (bool) (Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
40 self::$objectSupport = (bool) (Yaml::PARSE_OBJECT & $flags);
41 self::$objectForMap = (bool) (Yaml::PARSE_OBJECT_FOR_MAP & $flags);
42 self::$constantSupport = (bool) (Yaml::PARSE_CONSTANT & $flags);
54 * @param int $flags A bit field of Yaml::PARSE_* constants to customize the YAML parser behavior
113 * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
121 if (Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
135 if (Yaml::DUMP_OBJECT & $flags) {
139 if (Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \stdClass || $value instanceof \ArrayObject)) {
149 if (Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
229 * @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
234 if (($value || Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE & $flags) && !self::isHash($value)) {
254 if (Yaml::DUMP_NULL_AS_TILDE & $flags) {
641 throw new ParseException(sprintf('The string "%s" could not be parsed as a constant. Did you forget to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
702 if (Yaml::PARSE_DATETIME & $flags) {
754 if ('' === $tag || Yaml::PARSE_CUSTOM_TAGS & $flags) {
758 throw new ParseException(sprintf('Tags support is not enabled. Enable the "Yaml::PARSE_CUSTOM_TAGS" flag to use "!%s".', $tag), self::$parsedLineNumber + 1, $value, self::$parsedFilename);