Skip to content

Commit b90cded

Browse files
renamed PackStream NS to lowercase
1 parent 3ac6d32 commit b90cded

34 files changed

+79
-68
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ _`run` executes query in auto-commit transaction if explicit transaction was not
9999
| Dictionary | object or array which is not considered as list |
100100
| Structure | [directory with structures](https://github.com/neo4j-php/Bolt/tree/master/src/structures) |
101101

102-
List or dictionary can be also provided as instance of class implementing `Bolt\PackStream\IPackListGenerator` or `Bolt\PackStream\IPackDictionaryGenerator`. This approach helps with memory management while working with big amount of data. To learn more you can check [performance test](https://github.com/neo4j-php/Bolt/blob/master/tests/PerformanceTest.php) or [packer test](https://github.com/neo4j-php/Bolt/blob/master/tests/PackStream/v1/PackerTest.php).
102+
List or dictionary can be also provided as instance of class implementing `Bolt\packstream\IPackListGenerator` or `Bolt\PackStream\IPackDictionaryGenerator`. This approach helps with memory management while working with big amount of data. To learn more you can check [performance test](https://github.com/neo4j-php/Bolt/blob/master/tests/PerformanceTest.php) or [packer test](https://github.com/neo4j-php/Bolt/blob/master/tests/PackStream/v1/PackerTest.php).
103103

104104
Structures Node, Relationship, UnboundRelationship and Path cannot be used as parameter. They are available only as received data from database.
105105

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<directory>./tests/connection</directory>
66
<file>./tests/BoltTest.php</file>
77
<directory>./tests/error</directory>
8-
<directory>./tests/PackStream</directory>
8+
<directory>./tests/packstream</directory>
99
<directory>./tests/structures</directory>
1010
</testsuite>
1111
<testsuite name="NoDatabase">

src/Bolt.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Bolt\error\{ConnectException, PackException, UnpackException};
66
use Exception;
7-
use Bolt\PackStream\{IPacker, IUnpacker};
7+
use Bolt\packstream\{IPacker, IUnpacker};
88
use Bolt\protocol\{AProtocol, ServerState};
99
use Bolt\connection\IConnection;
1010

@@ -87,13 +87,13 @@ public function setProtocolVersions(...$v): Bolt
8787
*/
8888
public function setPackStreamVersion(int $version = 1): Bolt
8989
{
90-
$packerClass = "\\Bolt\\PackStream\\v" . $version . "\\Packer";
90+
$packerClass = "\\Bolt\\packstream\\v" . $version . "\\Packer";
9191
if (!class_exists($packerClass)) {
9292
throw new PackException('Requested PackStream version (' . $version . ') not yet implemented');
9393
}
9494
$this->packer = new $packerClass();
9595

96-
$unpackerClass = "\\Bolt\\PackStream\\v" . $version . "\\Unpacker";
96+
$unpackerClass = "\\Bolt\\packstream\\v" . $version . "\\Unpacker";
9797
if (!class_exists($unpackerClass)) {
9898
throw new UnpackException('Requested PackStream version (' . $version . ') not yet implemented');
9999
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Bolt\PackStream;
3+
namespace Bolt\packstream;
44

55
use ArrayAccess, Countable;
66

@@ -10,7 +10,7 @@
1010
* @author Michal Stefanak
1111
* @link https://github.com/neo4j-php/Bolt
1212
* @link https://www.neo4j.com/docs/bolt/current/packstream/#data-type-bytes
13-
* @package Bolt\PackStream
13+
* @package Bolt\packstream
1414
*/
1515
class Bytes implements ArrayAccess, Countable
1616
{

src/PackStream/IPackDictionaryGenerator.php renamed to src/packstream/IPackDictionaryGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Bolt\PackStream;
3+
namespace Bolt\packstream;
44

55
/**
66
* Class PackDictionaryGenerator
77
* @author Michal Stefanak
88
* @link https://github.com/neo4j-php/Bolt
9-
* @package Bolt\PackStream
9+
* @package Bolt\packstream
1010
*/
1111
interface IPackDictionaryGenerator extends \Countable, \Iterator
1212
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Bolt\PackStream;
3+
namespace Bolt\packstream;
44

55
/**
66
* Class PackListGenerator
77
* @author Michal Stefanak
88
* @link https://github.com/neo4j-php/Bolt
9-
* @package Bolt\PackStream
9+
* @package Bolt\packstream
1010
*/
1111
interface IPackListGenerator extends \Iterator, \Countable
1212
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Bolt\PackStream;
3+
namespace Bolt\packstream;
44

55
/**
66
* Interface IPacker
77
*
88
* @author Michal Stefanak
99
* @link https://github.com/neo4j-php/Bolt
10-
* @package Bolt\PackStream
10+
* @package Bolt\packstream
1111
*/
1212
interface IPacker
1313
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Bolt\PackStream;
3+
namespace Bolt\packstream;
44

55
/**
66
* Interface IUnpacker
77
*
88
* @author Michal Stefanak
99
* @link https://github.com/neo4j-php/Bolt
10-
* @package Bolt\PackStream
10+
* @package Bolt\packstream
1111
*/
1212
interface IUnpacker
1313
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

3-
namespace Bolt\PackStream\v1;
3+
namespace Bolt\packstream\v1;
44

55
use Bolt\error\PackException;
6-
use Bolt\PackStream\{Bytes, IPackDictionaryGenerator, IPackListGenerator, IPacker};
6+
use Bolt\packstream\{Bytes, IPackDictionaryGenerator, IPackListGenerator, IPacker};
77
use Bolt\protocol\IStructure;
88

99
/**
1010
* Class Packer of PackStream version 1
1111
*
1212
* @author Michal Stefanak
1313
* @link https://github.com/neo4j-php/Bolt
14-
* @package Bolt\PackStream\v1
14+
* @package Bolt\packstream\v1
1515
*/
1616
class Packer implements IPacker
1717
{
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<?php
22

3-
namespace Bolt\PackStream\v1;
3+
namespace Bolt\packstream\v1;
44

55
use Bolt\error\UnpackException;
6-
use Bolt\PackStream\Bytes;
7-
use Bolt\PackStream\IUnpacker;
6+
use Bolt\packstream\Bytes;
7+
use Bolt\packstream\IUnpacker;
88

99
/**
1010
* Class Unpacker of PackStream version 1
1111
*
1212
* @author Michal Stefanak
1313
* @link https://github.com/neo4j-php/Bolt
14-
* @package Bolt\PackStream\v1
14+
* @package Bolt\packstream\v1
1515
*/
1616
class Unpacker implements IUnpacker
1717
{

0 commit comments

Comments
 (0)