[Yaml] finished the renaming of YAML to Yaml

This commit is contained in:
Fabien Potencier 2010-02-11 19:24:23 +01:00
parent 6b03670de6
commit 97d6f76633
23 changed files with 21 additions and 21 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Components\YAML; namespace Symfony\Components\Yaml;
/* /*
* This file is part of the symfony package. * This file is part of the symfony package.

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Components\YAML; namespace Symfony\Components\Yaml;
/* /*
* This file is part of the symfony package. * This file is part of the symfony package.
@ -57,8 +57,8 @@ class Inline
*/ */
static public function dump($value) static public function dump($value)
{ {
$trueValues = '1.1' == YAML::getSpecVersion() ? array('true', 'on', '+', 'yes', 'y') : array('true'); $trueValues = '1.1' == Yaml::getSpecVersion() ? array('true', 'on', '+', 'yes', 'y') : array('true');
$falseValues = '1.1' == YAML::getSpecVersion() ? array('false', 'off', '-', 'no', 'n') : array('false'); $falseValues = '1.1' == Yaml::getSpecVersion() ? array('false', 'off', '-', 'no', 'n') : array('false');
switch (true) switch (true)
{ {
@ -351,8 +351,8 @@ class Inline
{ {
$scalar = trim($scalar); $scalar = trim($scalar);
$trueValues = '1.1' == YAML::getSpecVersion() ? array('true', 'on', '+', 'yes', 'y') : array('true'); $trueValues = '1.1' == Yaml::getSpecVersion() ? array('true', 'on', '+', 'yes', 'y') : array('true');
$falseValues = '1.1' == YAML::getSpecVersion() ? array('false', 'off', '-', 'no', 'n') : array('false'); $falseValues = '1.1' == Yaml::getSpecVersion() ? array('false', 'off', '-', 'no', 'n') : array('false');
switch (true) switch (true)
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Components\YAML; namespace Symfony\Components\Yaml;
/* /*
* This file is part of the symfony package. * This file is part of the symfony package.

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Components\YAML; namespace Symfony\Components\Yaml;
/* /*
* This file is part of the symfony package. * This file is part of the symfony package.
@ -17,7 +17,7 @@ namespace Symfony\Components\YAML;
* @subpackage yaml * @subpackage yaml
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class YAML class Yaml
{ {
static protected $spec = '1.2'; static protected $spec = '1.2';

View File

@ -10,18 +10,18 @@
require_once __DIR__.'/../../../bootstrap.php'; require_once __DIR__.'/../../../bootstrap.php';
use Symfony\Components\YAML\YAML; use Symfony\Components\Yaml\Yaml;
use Symfony\Components\YAML\Parser; use Symfony\Components\Yaml\Parser;
use Symfony\Components\YAML\Dumper; use Symfony\Components\Yaml\Dumper;
YAML::setSpecVersion('1.1'); Yaml::setSpecVersion('1.1');
$t = new LimeTest(148); $t = new LimeTest(148);
$parser = new Parser(); $parser = new Parser();
$dumper = new Dumper(); $dumper = new Dumper();
$path = __DIR__.'/../../../../fixtures/Symfony/Components/YAML'; $path = __DIR__.'/../../../../fixtures/Symfony/Components/Yaml';
$files = $parser->parse(file_get_contents($path.'/index.yml')); $files = $parser->parse(file_get_contents($path.'/index.yml'));
foreach ($files as $file) foreach ($files as $file)
{ {

View File

@ -10,10 +10,10 @@
require_once __DIR__.'/../../../bootstrap.php'; require_once __DIR__.'/../../../bootstrap.php';
use Symfony\Components\YAML\YAML; use Symfony\Components\Yaml\Yaml;
use Symfony\Components\YAML\Inline; use Symfony\Components\Yaml\Inline;
YAML::setSpecVersion('1.1'); Yaml::setSpecVersion('1.1');
$t = new LimeTest(124); $t = new LimeTest(124);

View File

@ -10,16 +10,16 @@
require_once __DIR__.'/../../../bootstrap.php'; require_once __DIR__.'/../../../bootstrap.php';
use Symfony\Components\YAML\YAML; use Symfony\Components\Yaml\Yaml;
use Symfony\Components\YAML\Parser; use Symfony\Components\Yaml\Parser;
YAML::setSpecVersion('1.1'); Yaml::setSpecVersion('1.1');
$t = new LimeTest(148); $t = new LimeTest(148);
$parser = new Parser(); $parser = new Parser();
$path = __DIR__.'/../../../../fixtures/Symfony/Components/YAML'; $path = __DIR__.'/../../../../fixtures/Symfony/Components/Yaml';
$files = $parser->parse(file_get_contents($path.'/index.yml')); $files = $parser->parse(file_get_contents($path.'/index.yml'));
foreach ($files as $file) foreach ($files as $file)
{ {