Skip to content

Commit e8299ca

Browse files
author
Nikita Pogadaev
committed
Rename new namespaces
1 parent 3444e7a commit e8299ca

16 files changed

Lines changed: 56 additions & 56 deletions

MIGRATING-4.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This guide covers migration from the 3.x line to the 4.0 line.
1010
## Major Behavioral Changes
1111

1212
4.0 introduces strict runtime validation for query builder and helper input.
13-
Invalid query-shape arguments now fail fast with `Foolz\SphinxQL\Exception\SphinxQLException`.
13+
Invalid query-shape arguments now fail fast with `OpenRegion\SphinxQL\Exception\SphinxQLException`.
1414

1515
### SphinxQL builder strict validation
1616

docs/config.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PDO driver:
2929
3030
<?php
3131
32-
use Foolz\SphinxQL\Drivers\Pdo\Connection;
32+
use OpenRegion\SphinxQL\Drivers\Pdo\Connection;
3333
3434
$conn = new Connection();
3535
$conn->setParams([
@@ -76,7 +76,7 @@ For raw SQL fragments, use ``SphinxQL::expr()``.
7676
7777
<?php
7878
79-
use Foolz\SphinxQL\SphinxQL;
79+
use OpenRegion\SphinxQL\SphinxQL;
8080
8181
$sql = (new SphinxQL($conn))
8282
->select()

docs/features/facet.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Building a Facet
1010
1111
<?php
1212
13-
use Foolz\SphinxQL\Facet;
13+
use OpenRegion\SphinxQL\Facet;
1414
1515
$facet = (new Facet($conn))
1616
->facet(['gid'])
@@ -33,8 +33,8 @@ FACET is returned as an extra result set, so use ``executeBatch()``.
3333
3434
<?php
3535
36-
use Foolz\SphinxQL\Facet;
37-
use Foolz\SphinxQL\SphinxQL;
36+
use OpenRegion\SphinxQL\Facet;
37+
use OpenRegion\SphinxQL\SphinxQL;
3838
3939
$batch = (new SphinxQL($conn))
4040
->select()

docs/features/match-builder.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Standalone Build
1212
1313
<?php
1414
15-
use Foolz\SphinxQL\MatchBuilder;
16-
use Foolz\SphinxQL\SphinxQL;
15+
use OpenRegion\OpenRegionSphinxQL\MatchBuilder;
16+
use OpenRegion\SphinxQL\SphinxQL;
1717
1818
$sq = new SphinxQL($conn);
1919
@@ -62,7 +62,7 @@ Raw expression bypass:
6262

6363
.. code-block:: php
6464
65-
use Foolz\SphinxQL\SphinxQL;
65+
use OpenRegion\SphinxQL\SphinxQL;
6666
6767
$expr = (new MatchBuilder($sq))
6868
->match(SphinxQL::expr('test|case'))

docs/features/multi-query-builder.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Basic Batch
1010
1111
<?php
1212
13-
use Foolz\SphinxQL\SphinxQL;
13+
use OpenRegion\SphinxQL\SphinxQL;
1414
1515
$batch = (new SphinxQL($conn))
1616
->select()
@@ -33,8 +33,8 @@ Mixing Helper Calls in Batch
3333
3434
<?php
3535
36-
use Foolz\SphinxQL\Helper;
37-
use Foolz\SphinxQL\SphinxQL;
36+
use OpenRegion\SphinxQL\Helper;
37+
use OpenRegion\SphinxQL\SphinxQL;
3838
3939
$result = (new SphinxQL($conn))
4040
->select()

docs/features/percolate.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Store Queries in a Percolate Index
1010
1111
<?php
1212
13-
use Foolz\SphinxQL\Percolate;
13+
use OpenRegion\SphinxQL\Percolate;
1414
1515
$pq = (new Percolate($conn))
1616
->insert('@subject orange')
@@ -33,7 +33,7 @@ Run ``CALL PQ``
3333
3434
<?php
3535
36-
use Foolz\SphinxQL\Percolate;
36+
use OpenRegion\SphinxQL\Percolate;
3737
3838
$rows = (new Percolate($conn))
3939
->callPQ()

docs/helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Helper API
77
88
<?php
99
10-
use Foolz\SphinxQL\Helper;
10+
use OpenRegion\SphinxQL\Helper;
1111
1212
$helper = new Helper($conn);
1313
$rows = $helper->showVariables()->execute()->getStored();

docs/intro.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ It is designed for teams that want:
1414

1515
Supported drivers:
1616

17-
- ``Foolz\\SphinxQL\\Drivers\\Mysqli\\Connection``
18-
- ``Foolz\\SphinxQL\\Drivers\\Pdo\\Connection``
17+
- ``OpenRegion\\SphinxQL\\Drivers\\Mysqli\\Connection``
18+
- ``OpenRegion\\SphinxQL\\Drivers\\Pdo\\Connection``
1919

2020
Quick Example
2121
-------------
@@ -24,8 +24,8 @@ Quick Example
2424
2525
<?php
2626
27-
use Foolz\SphinxQL\Drivers\Mysqli\Connection;
28-
use Foolz\SphinxQL\SphinxQL;
27+
use OpenRegion\SphinxQL\Drivers\Mysqli\Connection;
28+
use OpenRegion\SphinxQL\SphinxQL;
2929
3030
$conn = new Connection();
3131
$conn->setParams([
@@ -52,7 +52,7 @@ Compiling queries before execution is useful for debugging and tests.
5252
5353
<?php
5454
55-
use Foolz\SphinxQL\SphinxQL;
55+
use OpenRegion\SphinxQL\SphinxQL;
5656
5757
$sql = (new SphinxQL($conn))
5858
->select('a.id')

docs/migrating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Key Behavioral Changes
1313
----------------------
1414

1515
4.0 introduces stricter runtime validation. Invalid query-shape input now throws
16-
``Foolz\\SphinxQL\\Exception\\SphinxQLException`` instead of being coerced.
16+
``OpenRegion\\SphinxQL\\Exception\\SphinxQLException`` instead of being coerced.
1717

1818
Builder validation highlights:
1919

src/Capabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Foolz\SphinxQL;
3+
namespace OpenRegion\SphinxQL;
44

55
/**
66
* Describes detected engine/runtime capabilities.

0 commit comments

Comments
 (0)