Browse Source

Yaml Tweks for Insights.

1.0
Andrés Montañez 11 years ago
parent
commit
a3171c59dd
  1. 2
      vendor/Symfony/Component/Yaml/Dumper.php
  2. 2
      vendor/Symfony/Component/Yaml/Exception/DumpException.php
  3. 2
      vendor/Symfony/Component/Yaml/Exception/ParseException.php
  4. 2
      vendor/Symfony/Component/Yaml/Exception/RuntimeException.php
  5. 2
      vendor/Symfony/Component/Yaml/Inline.php
  6. 9
      vendor/Symfony/Component/Yaml/Parser.php
  7. 2
      vendor/Symfony/Component/Yaml/Yaml.php

2
vendor/Symfony/Component/Yaml/Dumper.php vendored

@ -11,6 +11,8 @@
namespace Symfony\Component\Yaml; namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Inline;
/** /**
* Dumper dumps PHP variables to YAML strings. * Dumper dumps PHP variables to YAML strings.
* *

2
vendor/Symfony/Component/Yaml/Exception/DumpException.php vendored

@ -11,6 +11,8 @@
namespace Symfony\Component\Yaml\Exception; namespace Symfony\Component\Yaml\Exception;
use Symfony\Component\Yaml\Exception\RuntimeException;
/** /**
* Exception class thrown when an error occurs during dumping. * Exception class thrown when an error occurs during dumping.
* *

2
vendor/Symfony/Component/Yaml/Exception/ParseException.php vendored

@ -11,6 +11,8 @@
namespace Symfony\Component\Yaml\Exception; namespace Symfony\Component\Yaml\Exception;
use Symfony\Component\Yaml\Exception\RuntimeException;
if (!defined('JSON_UNESCAPED_UNICODE')) { if (!defined('JSON_UNESCAPED_UNICODE')) {
define('JSON_UNESCAPED_SLASHES', 64); define('JSON_UNESCAPED_SLASHES', 64);
define('JSON_UNESCAPED_UNICODE', 256); define('JSON_UNESCAPED_UNICODE', 256);

2
vendor/Symfony/Component/Yaml/Exception/RuntimeException.php vendored

@ -11,6 +11,8 @@
namespace Symfony\Component\Yaml\Exception; namespace Symfony\Component\Yaml\Exception;
use Symfony\Component\Yaml\Exception\ExceptionInterface;
/** /**
* Exception class thrown when an error occurs during parsing. * Exception class thrown when an error occurs during parsing.
* *

2
vendor/Symfony/Component/Yaml/Inline.php vendored

@ -10,6 +10,8 @@
namespace Symfony\Component\Yaml; namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Escaper;
use Symfony\Component\Yaml\Unescaper;
use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Exception\DumpException; use Symfony\Component\Yaml\Exception\DumpException;

9
vendor/Symfony/Component/Yaml/Parser.php vendored

@ -10,6 +10,7 @@
namespace Symfony\Component\Yaml; namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Inline;
use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Exception\ParseException;
/** /**
@ -90,7 +91,7 @@ class Parser
// array // array
if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) { if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) {
$c = $this->getRealCurrentLineNb() + 1; $c = $this->getRealCurrentLineNb() + 1;
$parser = new Parser($c); $parser = new self($c);
$parser->refs =& $this->refs; $parser->refs =& $this->refs;
$data[] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport); $data[] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport);
} else { } else {
@ -100,7 +101,7 @@ class Parser
) { ) {
// this is a compact notation element, add to next block and parse // this is a compact notation element, add to next block and parse
$c = $this->getRealCurrentLineNb(); $c = $this->getRealCurrentLineNb();
$parser = new Parser($c); $parser = new self($c);
$parser->refs =& $this->refs; $parser->refs =& $this->refs;
$block = $values['value']; $block = $values['value'];
@ -143,7 +144,7 @@ class Parser
$value = $this->getNextEmbedBlock(); $value = $this->getNextEmbedBlock();
} }
$c = $this->getRealCurrentLineNb() + 1; $c = $this->getRealCurrentLineNb() + 1;
$parser = new Parser($c); $parser = new self($c);
$parser->refs =& $this->refs; $parser->refs =& $this->refs;
$parsed = $parser->parse($value, $exceptionOnInvalidType, $objectSupport); $parsed = $parser->parse($value, $exceptionOnInvalidType, $objectSupport);
@ -180,7 +181,7 @@ class Parser
$data[$key] = null; $data[$key] = null;
} else { } else {
$c = $this->getRealCurrentLineNb() + 1; $c = $this->getRealCurrentLineNb() + 1;
$parser = new Parser($c); $parser = new self($c);
$parser->refs =& $this->refs; $parser->refs =& $this->refs;
$data[$key] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport); $data[$key] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport);
} }

2
vendor/Symfony/Component/Yaml/Yaml.php vendored

@ -11,6 +11,8 @@
namespace Symfony\Component\Yaml; namespace Symfony\Component\Yaml;
use Symfony\Component\Yaml\Parser;
use Symfony\Component\Yaml\Dumper;
use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Exception\ParseException;
/** /**

Loading…
Cancel
Save