Prechádzať zdrojové kódy

[Yaml] finished the renaming of YAML to Yaml

Fabien Potencier 15 rokov pred
rodič
commit
97d6f76633
23 zmenil súbory, kde vykonal 21 pridanie a 21 odobranie
  1. 1 1
      src/Symfony/Components/Yaml/Dumper.php
  2. 5 5
      src/Symfony/Components/Yaml/Inline.php
  3. 1 1
      src/Symfony/Components/Yaml/Parser.php
  4. 2 2
      src/Symfony/Components/Yaml/YAML.php
  5. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsAnchorAlias.yml
  6. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsBasicTests.yml
  7. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsBlockMapping.yml
  8. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsDocumentSeparator.yml
  9. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsErrorTests.yml
  10. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsFlowCollections.yml
  11. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsFoldedScalars.yml
  12. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsNullsAndEmpties.yml
  13. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsSpecificationExamples.yml
  14. 0 0
      tests/fixtures/Symfony/Components/Yaml/YtsTypeTransfers.yml
  15. 0 0
      tests/fixtures/Symfony/Components/Yaml/index.yml
  16. 0 0
      tests/fixtures/Symfony/Components/Yaml/sfComments.yml
  17. 0 0
      tests/fixtures/Symfony/Components/Yaml/sfMergeKey.yml
  18. 0 0
      tests/fixtures/Symfony/Components/Yaml/sfObjects.yml
  19. 0 0
      tests/fixtures/Symfony/Components/Yaml/sfQuotes.yml
  20. 0 0
      tests/fixtures/Symfony/Components/Yaml/sfTests.yml
  21. 5 5
      tests/unit/Symfony/Components/YAML/DumperTest.php
  22. 3 3
      tests/unit/Symfony/Components/YAML/InlineTest.php
  23. 4 4
      tests/unit/Symfony/Components/YAML/ParserTest.php

+ 1 - 1
src/Symfony/Components/Yaml/Dumper.php

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

+ 5 - 5
src/Symfony/Components/Yaml/Inline.php

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

+ 1 - 1
src/Symfony/Components/Yaml/Parser.php

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

+ 2 - 2
src/Symfony/Components/Yaml/YAML.php

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

tests/fixtures/Symfony/Components/YAML/YtsAnchorAlias.yml → tests/fixtures/Symfony/Components/Yaml/YtsAnchorAlias.yml


tests/fixtures/Symfony/Components/YAML/YtsBasicTests.yml → tests/fixtures/Symfony/Components/Yaml/YtsBasicTests.yml


tests/fixtures/Symfony/Components/YAML/YtsBlockMapping.yml → tests/fixtures/Symfony/Components/Yaml/YtsBlockMapping.yml


tests/fixtures/Symfony/Components/YAML/YtsDocumentSeparator.yml → tests/fixtures/Symfony/Components/Yaml/YtsDocumentSeparator.yml


tests/fixtures/Symfony/Components/YAML/YtsErrorTests.yml → tests/fixtures/Symfony/Components/Yaml/YtsErrorTests.yml


tests/fixtures/Symfony/Components/YAML/YtsFlowCollections.yml → tests/fixtures/Symfony/Components/Yaml/YtsFlowCollections.yml


tests/fixtures/Symfony/Components/YAML/YtsFoldedScalars.yml → tests/fixtures/Symfony/Components/Yaml/YtsFoldedScalars.yml


tests/fixtures/Symfony/Components/YAML/YtsNullsAndEmpties.yml → tests/fixtures/Symfony/Components/Yaml/YtsNullsAndEmpties.yml


tests/fixtures/Symfony/Components/YAML/YtsSpecificationExamples.yml → tests/fixtures/Symfony/Components/Yaml/YtsSpecificationExamples.yml


tests/fixtures/Symfony/Components/YAML/YtsTypeTransfers.yml → tests/fixtures/Symfony/Components/Yaml/YtsTypeTransfers.yml


tests/fixtures/Symfony/Components/YAML/index.yml → tests/fixtures/Symfony/Components/Yaml/index.yml


tests/fixtures/Symfony/Components/YAML/sfComments.yml → tests/fixtures/Symfony/Components/Yaml/sfComments.yml


tests/fixtures/Symfony/Components/YAML/sfMergeKey.yml → tests/fixtures/Symfony/Components/Yaml/sfMergeKey.yml


tests/fixtures/Symfony/Components/YAML/sfObjects.yml → tests/fixtures/Symfony/Components/Yaml/sfObjects.yml


tests/fixtures/Symfony/Components/YAML/sfQuotes.yml → tests/fixtures/Symfony/Components/Yaml/sfQuotes.yml


tests/fixtures/Symfony/Components/YAML/sfTests.yml → tests/fixtures/Symfony/Components/Yaml/sfTests.yml


+ 5 - 5
tests/unit/Symfony/Components/YAML/DumperTest.php

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

+ 3 - 3
tests/unit/Symfony/Components/YAML/InlineTest.php

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

+ 4 - 4
tests/unit/Symfony/Components/YAML/ParserTest.php

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