Browse Source

Move source files from "lib/" to "src/".

Daniele Alessandri 10 years ago
parent
commit
029822fe22
100 changed files with 7 additions and 7 deletions
  1. 1 1
      autoload.php
  2. 1 1
      bin/create-command-test
  3. 1 1
      bin/create-phar
  4. 1 1
      bin/create-single-file
  5. 1 1
      composer.json
  6. 1 1
      phpunit.xml.dist
  7. 1 1
      phpunit.xml.travisci
  8. 0 0
      src/Autoloader.php
  9. 0 0
      src/BasicClientInterface.php
  10. 0 0
      src/Client.php
  11. 0 0
      src/ClientException.php
  12. 0 0
      src/ClientInterface.php
  13. 0 0
      src/Cluster/Distributor/DistributorInterface.php
  14. 0 0
      src/Cluster/Distributor/EmptyRingException.php
  15. 0 0
      src/Cluster/Distributor/HashRing.php
  16. 0 0
      src/Cluster/Distributor/KetamaRing.php
  17. 0 0
      src/Cluster/Hash/CRC16.php
  18. 0 0
      src/Cluster/Hash/HashGeneratorInterface.php
  19. 0 0
      src/Cluster/PredisStrategy.php
  20. 0 0
      src/Cluster/RedisStrategy.php
  21. 0 0
      src/Cluster/StrategyInterface.php
  22. 0 0
      src/Collection/Iterator/CursorBasedIterator.php
  23. 0 0
      src/Collection/Iterator/HashKey.php
  24. 0 0
      src/Collection/Iterator/Keyspace.php
  25. 0 0
      src/Collection/Iterator/ListKey.php
  26. 0 0
      src/Collection/Iterator/SetKey.php
  27. 0 0
      src/Collection/Iterator/SortedSetKey.php
  28. 0 0
      src/Command/Command.php
  29. 0 0
      src/Command/CommandInterface.php
  30. 0 0
      src/Command/ConnectionAuth.php
  31. 0 0
      src/Command/ConnectionEcho.php
  32. 0 0
      src/Command/ConnectionPing.php
  33. 0 0
      src/Command/ConnectionQuit.php
  34. 0 0
      src/Command/ConnectionSelect.php
  35. 0 0
      src/Command/HashDelete.php
  36. 0 0
      src/Command/HashExists.php
  37. 0 0
      src/Command/HashGet.php
  38. 0 0
      src/Command/HashGetAll.php
  39. 0 0
      src/Command/HashGetMultiple.php
  40. 0 0
      src/Command/HashIncrementBy.php
  41. 0 0
      src/Command/HashIncrementByFloat.php
  42. 0 0
      src/Command/HashKeys.php
  43. 0 0
      src/Command/HashLength.php
  44. 0 0
      src/Command/HashScan.php
  45. 0 0
      src/Command/HashSet.php
  46. 0 0
      src/Command/HashSetMultiple.php
  47. 0 0
      src/Command/HashSetPreserve.php
  48. 0 0
      src/Command/HashValues.php
  49. 0 0
      src/Command/HyperLogLogAdd.php
  50. 0 0
      src/Command/HyperLogLogCount.php
  51. 0 0
      src/Command/HyperLogLogMerge.php
  52. 0 0
      src/Command/KeyDelete.php
  53. 0 0
      src/Command/KeyDump.php
  54. 0 0
      src/Command/KeyExists.php
  55. 0 0
      src/Command/KeyExpire.php
  56. 0 0
      src/Command/KeyExpireAt.php
  57. 0 0
      src/Command/KeyKeys.php
  58. 0 0
      src/Command/KeyKeysV12x.php
  59. 0 0
      src/Command/KeyMove.php
  60. 0 0
      src/Command/KeyPersist.php
  61. 0 0
      src/Command/KeyPreciseExpire.php
  62. 0 0
      src/Command/KeyPreciseExpireAt.php
  63. 0 0
      src/Command/KeyPreciseTimeToLive.php
  64. 0 0
      src/Command/KeyRandom.php
  65. 0 0
      src/Command/KeyRename.php
  66. 0 0
      src/Command/KeyRenamePreserve.php
  67. 0 0
      src/Command/KeyRestore.php
  68. 0 0
      src/Command/KeyScan.php
  69. 0 0
      src/Command/KeySort.php
  70. 0 0
      src/Command/KeyTimeToLive.php
  71. 0 0
      src/Command/KeyType.php
  72. 0 0
      src/Command/ListIndex.php
  73. 0 0
      src/Command/ListInsert.php
  74. 0 0
      src/Command/ListLength.php
  75. 0 0
      src/Command/ListPopFirst.php
  76. 0 0
      src/Command/ListPopFirstBlocking.php
  77. 0 0
      src/Command/ListPopLast.php
  78. 0 0
      src/Command/ListPopLastBlocking.php
  79. 0 0
      src/Command/ListPopLastPushHead.php
  80. 0 0
      src/Command/ListPopLastPushHeadBlocking.php
  81. 0 0
      src/Command/ListPushHead.php
  82. 0 0
      src/Command/ListPushHeadX.php
  83. 0 0
      src/Command/ListPushTail.php
  84. 0 0
      src/Command/ListPushTailX.php
  85. 0 0
      src/Command/ListRange.php
  86. 0 0
      src/Command/ListRemove.php
  87. 0 0
      src/Command/ListSet.php
  88. 0 0
      src/Command/ListTrim.php
  89. 0 0
      src/Command/PrefixableCommandInterface.php
  90. 0 0
      src/Command/Processor/KeyPrefixProcessor.php
  91. 0 0
      src/Command/Processor/ProcessorChain.php
  92. 0 0
      src/Command/Processor/ProcessorInterface.php
  93. 0 0
      src/Command/PubSubPublish.php
  94. 0 0
      src/Command/PubSubPubsub.php
  95. 0 0
      src/Command/PubSubSubscribe.php
  96. 0 0
      src/Command/PubSubSubscribeByPattern.php
  97. 0 0
      src/Command/PubSubUnsubscribe.php
  98. 0 0
      src/Command/PubSubUnsubscribeByPattern.php
  99. 0 0
      src/Command/RawCommand.php
  100. 0 0
      src/Command/ScriptCommand.php

+ 1 - 1
autoload.php

@@ -9,6 +9,6 @@
  * file that was distributed with this source code.
  * file that was distributed with this source code.
  */
  */
 
 
-require __DIR__.'/lib/Autoloader.php';
+require __DIR__.'/src/Autoloader.php';
 
 
 Predis\Autoloader::register();
 Predis\Autoloader::register();

+ 1 - 1
bin/create-command-test

@@ -95,7 +95,7 @@ class CommandTestCaseGenerator
         $options['fqn'] = "Predis\\Command\\{$options['class']}";
         $options['fqn'] = "Predis\\Command\\{$options['class']}";
         $options['path'] = "Command/{$options['class']}.php";
         $options['path'] = "Command/{$options['class']}.php";
 
 
-        $source = __DIR__.'/../lib/'.$options['path'];
+        $source = __DIR__.'/../src/'.$options['path'];
         if (!file_exists($source)) {
         if (!file_exists($source)) {
             throw new RuntimeException("Cannot find class file for {$options['fqn']} in $source.");
             throw new RuntimeException("Cannot find class file for {$options['fqn']} in $source.");
         }
         }

+ 1 - 1
bin/create-phar

@@ -19,7 +19,7 @@
 
 
 $options = array(
 $options = array(
     'name'           => 'predis',
     'name'           => 'predis',
-    'project_path'   => __DIR__ . '/../lib/',
+    'project_path'   => __DIR__ . '/../src',
     'compression'    => Phar::NONE,
     'compression'    => Phar::NONE,
     'append_version' => true,
     'append_version' => true,
 );
 );

+ 1 - 1
bin/create-single-file

@@ -36,7 +36,7 @@ class CommandLine
         $getops = getopt(implode(array_keys($parameters)), $parameters);
         $getops = getopt(implode(array_keys($parameters)), $parameters);
 
 
         $options = array(
         $options = array(
-            'source'  => __DIR__ . "/../lib",
+            'source'  => __DIR__ . "/../src",
             'output'  => PredisFile::NS_ROOT . '.php',
             'output'  => PredisFile::NS_ROOT . '.php',
             'exclude' => array(),
             'exclude' => array(),
         );
         );

+ 1 - 1
composer.json

@@ -26,7 +26,7 @@
         "ext-curl": "Allows access to Webdis when paired with phpiredis"
         "ext-curl": "Allows access to Webdis when paired with phpiredis"
     },
     },
     "autoload": {
     "autoload": {
-        "psr-4": {"Predis\\": "lib/"}
+        "psr-4": {"Predis\\": "src/"}
     },
     },
     "extra": {
     "extra": {
         "branch-alias": {
         "branch-alias": {

+ 1 - 1
phpunit.xml.dist

@@ -21,7 +21,7 @@
 
 
     <filter>
     <filter>
         <whitelist>
         <whitelist>
-            <directory suffix=".php">lib/</directory>
+            <directory suffix=".php">src/</directory>
         </whitelist>
         </whitelist>
     </filter>
     </filter>
 
 

+ 1 - 1
phpunit.xml.travisci

@@ -21,7 +21,7 @@
 
 
     <filter>
     <filter>
         <whitelist>
         <whitelist>
-            <directory suffix=".php">lib/</directory>
+            <directory suffix=".php">src/</directory>
         </whitelist>
         </whitelist>
     </filter>
     </filter>
 
 

+ 0 - 0
lib/Autoloader.php → src/Autoloader.php


+ 0 - 0
lib/BasicClientInterface.php → src/BasicClientInterface.php


+ 0 - 0
lib/Client.php → src/Client.php


+ 0 - 0
lib/ClientException.php → src/ClientException.php


+ 0 - 0
lib/ClientInterface.php → src/ClientInterface.php


+ 0 - 0
lib/Cluster/Distributor/DistributorInterface.php → src/Cluster/Distributor/DistributorInterface.php


+ 0 - 0
lib/Cluster/Distributor/EmptyRingException.php → src/Cluster/Distributor/EmptyRingException.php


+ 0 - 0
lib/Cluster/Distributor/HashRing.php → src/Cluster/Distributor/HashRing.php


+ 0 - 0
lib/Cluster/Distributor/KetamaRing.php → src/Cluster/Distributor/KetamaRing.php


+ 0 - 0
lib/Cluster/Hash/CRC16.php → src/Cluster/Hash/CRC16.php


+ 0 - 0
lib/Cluster/Hash/HashGeneratorInterface.php → src/Cluster/Hash/HashGeneratorInterface.php


+ 0 - 0
lib/Cluster/PredisStrategy.php → src/Cluster/PredisStrategy.php


+ 0 - 0
lib/Cluster/RedisStrategy.php → src/Cluster/RedisStrategy.php


+ 0 - 0
lib/Cluster/StrategyInterface.php → src/Cluster/StrategyInterface.php


+ 0 - 0
lib/Collection/Iterator/CursorBasedIterator.php → src/Collection/Iterator/CursorBasedIterator.php


+ 0 - 0
lib/Collection/Iterator/HashKey.php → src/Collection/Iterator/HashKey.php


+ 0 - 0
lib/Collection/Iterator/Keyspace.php → src/Collection/Iterator/Keyspace.php


+ 0 - 0
lib/Collection/Iterator/ListKey.php → src/Collection/Iterator/ListKey.php


+ 0 - 0
lib/Collection/Iterator/SetKey.php → src/Collection/Iterator/SetKey.php


+ 0 - 0
lib/Collection/Iterator/SortedSetKey.php → src/Collection/Iterator/SortedSetKey.php


+ 0 - 0
lib/Command/Command.php → src/Command/Command.php


+ 0 - 0
lib/Command/CommandInterface.php → src/Command/CommandInterface.php


+ 0 - 0
lib/Command/ConnectionAuth.php → src/Command/ConnectionAuth.php


+ 0 - 0
lib/Command/ConnectionEcho.php → src/Command/ConnectionEcho.php


+ 0 - 0
lib/Command/ConnectionPing.php → src/Command/ConnectionPing.php


+ 0 - 0
lib/Command/ConnectionQuit.php → src/Command/ConnectionQuit.php


+ 0 - 0
lib/Command/ConnectionSelect.php → src/Command/ConnectionSelect.php


+ 0 - 0
lib/Command/HashDelete.php → src/Command/HashDelete.php


+ 0 - 0
lib/Command/HashExists.php → src/Command/HashExists.php


+ 0 - 0
lib/Command/HashGet.php → src/Command/HashGet.php


+ 0 - 0
lib/Command/HashGetAll.php → src/Command/HashGetAll.php


+ 0 - 0
lib/Command/HashGetMultiple.php → src/Command/HashGetMultiple.php


+ 0 - 0
lib/Command/HashIncrementBy.php → src/Command/HashIncrementBy.php


+ 0 - 0
lib/Command/HashIncrementByFloat.php → src/Command/HashIncrementByFloat.php


+ 0 - 0
lib/Command/HashKeys.php → src/Command/HashKeys.php


+ 0 - 0
lib/Command/HashLength.php → src/Command/HashLength.php


+ 0 - 0
lib/Command/HashScan.php → src/Command/HashScan.php


+ 0 - 0
lib/Command/HashSet.php → src/Command/HashSet.php


+ 0 - 0
lib/Command/HashSetMultiple.php → src/Command/HashSetMultiple.php


+ 0 - 0
lib/Command/HashSetPreserve.php → src/Command/HashSetPreserve.php


+ 0 - 0
lib/Command/HashValues.php → src/Command/HashValues.php


+ 0 - 0
lib/Command/HyperLogLogAdd.php → src/Command/HyperLogLogAdd.php


+ 0 - 0
lib/Command/HyperLogLogCount.php → src/Command/HyperLogLogCount.php


+ 0 - 0
lib/Command/HyperLogLogMerge.php → src/Command/HyperLogLogMerge.php


+ 0 - 0
lib/Command/KeyDelete.php → src/Command/KeyDelete.php


+ 0 - 0
lib/Command/KeyDump.php → src/Command/KeyDump.php


+ 0 - 0
lib/Command/KeyExists.php → src/Command/KeyExists.php


+ 0 - 0
lib/Command/KeyExpire.php → src/Command/KeyExpire.php


+ 0 - 0
lib/Command/KeyExpireAt.php → src/Command/KeyExpireAt.php


+ 0 - 0
lib/Command/KeyKeys.php → src/Command/KeyKeys.php


+ 0 - 0
lib/Command/KeyKeysV12x.php → src/Command/KeyKeysV12x.php


+ 0 - 0
lib/Command/KeyMove.php → src/Command/KeyMove.php


+ 0 - 0
lib/Command/KeyPersist.php → src/Command/KeyPersist.php


+ 0 - 0
lib/Command/KeyPreciseExpire.php → src/Command/KeyPreciseExpire.php


+ 0 - 0
lib/Command/KeyPreciseExpireAt.php → src/Command/KeyPreciseExpireAt.php


+ 0 - 0
lib/Command/KeyPreciseTimeToLive.php → src/Command/KeyPreciseTimeToLive.php


+ 0 - 0
lib/Command/KeyRandom.php → src/Command/KeyRandom.php


+ 0 - 0
lib/Command/KeyRename.php → src/Command/KeyRename.php


+ 0 - 0
lib/Command/KeyRenamePreserve.php → src/Command/KeyRenamePreserve.php


+ 0 - 0
lib/Command/KeyRestore.php → src/Command/KeyRestore.php


+ 0 - 0
lib/Command/KeyScan.php → src/Command/KeyScan.php


+ 0 - 0
lib/Command/KeySort.php → src/Command/KeySort.php


+ 0 - 0
lib/Command/KeyTimeToLive.php → src/Command/KeyTimeToLive.php


+ 0 - 0
lib/Command/KeyType.php → src/Command/KeyType.php


+ 0 - 0
lib/Command/ListIndex.php → src/Command/ListIndex.php


+ 0 - 0
lib/Command/ListInsert.php → src/Command/ListInsert.php


+ 0 - 0
lib/Command/ListLength.php → src/Command/ListLength.php


+ 0 - 0
lib/Command/ListPopFirst.php → src/Command/ListPopFirst.php


+ 0 - 0
lib/Command/ListPopFirstBlocking.php → src/Command/ListPopFirstBlocking.php


+ 0 - 0
lib/Command/ListPopLast.php → src/Command/ListPopLast.php


+ 0 - 0
lib/Command/ListPopLastBlocking.php → src/Command/ListPopLastBlocking.php


+ 0 - 0
lib/Command/ListPopLastPushHead.php → src/Command/ListPopLastPushHead.php


+ 0 - 0
lib/Command/ListPopLastPushHeadBlocking.php → src/Command/ListPopLastPushHeadBlocking.php


+ 0 - 0
lib/Command/ListPushHead.php → src/Command/ListPushHead.php


+ 0 - 0
lib/Command/ListPushHeadX.php → src/Command/ListPushHeadX.php


+ 0 - 0
lib/Command/ListPushTail.php → src/Command/ListPushTail.php


+ 0 - 0
lib/Command/ListPushTailX.php → src/Command/ListPushTailX.php


+ 0 - 0
lib/Command/ListRange.php → src/Command/ListRange.php


+ 0 - 0
lib/Command/ListRemove.php → src/Command/ListRemove.php


+ 0 - 0
lib/Command/ListSet.php → src/Command/ListSet.php


+ 0 - 0
lib/Command/ListTrim.php → src/Command/ListTrim.php


+ 0 - 0
lib/Command/PrefixableCommandInterface.php → src/Command/PrefixableCommandInterface.php


+ 0 - 0
lib/Command/Processor/KeyPrefixProcessor.php → src/Command/Processor/KeyPrefixProcessor.php


+ 0 - 0
lib/Command/Processor/ProcessorChain.php → src/Command/Processor/ProcessorChain.php


+ 0 - 0
lib/Command/Processor/ProcessorInterface.php → src/Command/Processor/ProcessorInterface.php


+ 0 - 0
lib/Command/PubSubPublish.php → src/Command/PubSubPublish.php


+ 0 - 0
lib/Command/PubSubPubsub.php → src/Command/PubSubPubsub.php


+ 0 - 0
lib/Command/PubSubSubscribe.php → src/Command/PubSubSubscribe.php


+ 0 - 0
lib/Command/PubSubSubscribeByPattern.php → src/Command/PubSubSubscribeByPattern.php


+ 0 - 0
lib/Command/PubSubUnsubscribe.php → src/Command/PubSubUnsubscribe.php


+ 0 - 0
lib/Command/PubSubUnsubscribeByPattern.php → src/Command/PubSubUnsubscribeByPattern.php


+ 0 - 0
lib/Command/RawCommand.php → src/Command/RawCommand.php


+ 0 - 0
lib/Command/ScriptCommand.php → src/Command/ScriptCommand.php


Some files were not shown because too many files changed in this diff