Skip to content

Commit 823da1d

Browse files
committed
Renamed vendor namespace prefix for all classes due to renaming organization on Github
1 parent 34893ac commit 823da1d

File tree

71 files changed

+231
-231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+231
-231
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016 Tequilla Project
1+
Copyright (c) 2016 Tequila Project
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Tequilla MongoDB PHP Library (driver library)
1+
# Tequila MongoDB PHP Library (driver library)
22

3-
The Tequilla MongoDB project is a library, which provides the high-level abstraction around the new low-level [PHP MongoDB driver](https://github.com/mongodb/mongo-php-driver), e.g.
3+
The Tequila MongoDB project is a library, which provides the high-level abstraction around the new low-level [PHP MongoDB driver](https://github.com/mongodb/mongo-php-driver), e.g.
44
schema-management, abstractions around connections, databases, collections, indexes etc.
55

66
The library works on PHP 5.6.0 or higher, PHP 7.0 or higher, MongoDB 3.0 or higher. It also requires the PHP `mongodb` extension (the MongoDB driver for PHP) to be installed.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tequilla/mongodb-php-lib",
2+
"name": "Tequila/mongodb-php-lib",
33
"description": "PHP MongoDB abstraction layer (driver library)",
44
"type": "library",
55
"require": {
@@ -8,10 +8,10 @@
88
"symfony/options-resolver": ">=2.8"
99
},
1010
"autoload": {
11-
"psr-4": { "Tequilla\\MongoDB\\": "src/" }
11+
"psr-4": { "Tequila\\MongoDB\\": "src/" }
1212
},
1313
"autoload-dev": {
14-
"psr-4": { "Tequilla\\MongoDB\\Tests\\": "tests/" }
14+
"psr-4": { "Tequila\\MongoDB\\Tests\\": "tests/" }
1515
},
1616
"license": "MIT",
1717
"authors": [

src/Collection.php

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

3-
namespace Tequilla\MongoDB;
4-
5-
use Tequilla\MongoDB\Write\Bulk\BulkWrite;
6-
use Tequilla\MongoDB\Write\Bulk\BulkWriteOptions;
7-
use Tequilla\MongoDB\Write\Model\DeleteMany;
8-
use Tequilla\MongoDB\Write\Model\DeleteOne;
9-
use Tequilla\MongoDB\Write\Model\InsertOne;
10-
use Tequilla\MongoDB\Write\Model\ReplaceOne;
11-
use Tequilla\MongoDB\Write\Model\UpdateMany;
12-
use Tequilla\MongoDB\Write\Model\UpdateOne;
13-
use Tequilla\MongoDB\Write\Model\WriteModelInterface;
14-
use Tequilla\MongoDB\Write\Result\DeleteResult;
15-
use Tequilla\MongoDB\Write\Result\InsertManyResult;
16-
use Tequilla\MongoDB\Write\Result\InsertOneResult;
17-
use Tequilla\MongoDB\Write\Result\UpdateResult;
3+
namespace Tequila\MongoDB;
4+
5+
use Tequila\MongoDB\Write\Bulk\BulkWrite;
6+
use Tequila\MongoDB\Write\Bulk\BulkWriteOptions;
7+
use Tequila\MongoDB\Write\Model\DeleteMany;
8+
use Tequila\MongoDB\Write\Model\DeleteOne;
9+
use Tequila\MongoDB\Write\Model\InsertOne;
10+
use Tequila\MongoDB\Write\Model\ReplaceOne;
11+
use Tequila\MongoDB\Write\Model\UpdateMany;
12+
use Tequila\MongoDB\Write\Model\UpdateOne;
13+
use Tequila\MongoDB\Write\Model\WriteModelInterface;
14+
use Tequila\MongoDB\Write\Result\DeleteResult;
15+
use Tequila\MongoDB\Write\Result\InsertManyResult;
16+
use Tequila\MongoDB\Write\Result\InsertOneResult;
17+
use Tequila\MongoDB\Write\Result\UpdateResult;
1818

1919
class Collection
2020
{
@@ -74,7 +74,7 @@ public function drop()
7474
/**
7575
* @param WriteModelInterface[] $requests
7676
* @param array $options
77-
* @return \Tequilla\MongoDB\Write\Bulk\BulkWriteResult
77+
* @return \Tequila\MongoDB\Write\Bulk\BulkWriteResult
7878
*/
7979
public function bulkWrite(array $requests, array $options = [])
8080
{

src/CollectionInterface.php

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

3-
namespace Tequilla\MongoDB;
3+
namespace Tequila\MongoDB;
44

55
interface CollectionInterface
66
{
@@ -20,7 +20,7 @@ public function find(array $filter, array $options = []);
2020
/**
2121
* @param array $requests
2222
* @param array $options
23-
* @return \Tequilla\MongoDB\Write\Bulk\BulkWriteResult
23+
* @return \Tequila\MongoDB\Write\Bulk\BulkWriteResult
2424
*/
2525
public function bulkWrite(array $requests, array $options = []);
2626

src/Command/CommandBuilder.php

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

3-
namespace Tequilla\MongoDB\Command;
3+
namespace Tequila\MongoDB\Command;
44

5-
use Tequilla\MongoDB\Connection;
5+
use Tequila\MongoDB\Connection;
66

77
/**
88
* Class CommandBuilder
9-
* @package Tequilla\MongoDB\Command
9+
* @package Tequila\MongoDB\Command
1010
*/
1111
class CommandBuilder
1212
{

src/Command/CommandTypeInterface.php

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

3-
namespace Tequilla\MongoDB\Command;
3+
namespace Tequila\MongoDB\Command;
44

55
use MongoDB\Driver\ReadPreference;
6-
use Tequilla\MongoDB\Options\ConfigurableInterface;
6+
use Tequila\MongoDB\Options\ConfigurableInterface;
77

88
/**
99
* Interface CommandInterface
10-
* @package Tequilla\MongoDB\Command
10+
* @package Tequila\MongoDB\Command
1111
*/
1212
interface CommandTypeInterface extends ConfigurableInterface
1313
{

src/Command/CommandWrapper.php

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

3-
namespace Tequilla\MongoDB\Command;
3+
namespace Tequila\MongoDB\Command;
44

55
use MongoDB\Driver\ReadPreference;
66
use Symfony\Component\OptionsResolver\OptionsResolver;
7-
use Tequilla\MongoDB\CommandCursor;
8-
use Tequilla\MongoDB\Connection;
9-
use Tequilla\MongoDB\Exception\InvalidArgumentException;
7+
use Tequila\MongoDB\CommandCursor;
8+
use Tequila\MongoDB\Connection;
9+
use Tequila\MongoDB\Exception\InvalidArgumentException;
1010
use Symfony\Component\OptionsResolver\Exception\InvalidArgumentException as OptionsResolverException;
11-
use Tequilla\MongoDB\Util\TypeUtils;
11+
use Tequila\MongoDB\Util\TypeUtils;
1212

1313
/**
1414
* Class Command
15-
* @package Tequilla\MongoDB\Command
15+
* @package Tequila\MongoDB\Command
1616
*/
1717
class CommandWrapper
1818
{

src/Command/Type/CreateCollectionType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\Options;
66
use Symfony\Component\OptionsResolver\OptionsResolver;
7-
use Tequilla\MongoDB\Command\CommandTypeInterface;
8-
use Tequilla\MongoDB\Exception\InvalidArgumentException;
7+
use Tequila\MongoDB\Command\CommandTypeInterface;
8+
use Tequila\MongoDB\Exception\InvalidArgumentException;
99

1010
class CreateCollectionType implements CommandTypeInterface
1111
{

src/Command/Type/CreateIndexesType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\OptionsResolver;
6-
use Tequilla\MongoDB\Command\CommandTypeInterface;
6+
use Tequila\MongoDB\Command\CommandTypeInterface;
77

88
class CreateIndexesType implements CommandTypeInterface
99
{

src/Command/Type/DropCollectionType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\OptionsResolver;
6-
use Tequilla\MongoDB\Command\CommandTypeInterface;
6+
use Tequila\MongoDB\Command\CommandTypeInterface;
77

88
/**
99
* Class DropCollectionType
10-
* @package Tequilla\MongoDB\Command\Type
10+
* @package Tequila\MongoDB\Command\Type
1111
*/
1212
class DropCollectionType implements CommandTypeInterface
1313
{

src/Command/Type/DropDatabaseType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\OptionsResolver;
6-
use Tequilla\MongoDB\Command\CommandTypeInterface;
6+
use Tequila\MongoDB\Command\CommandTypeInterface;
77

88
/**
99
* Class DropDatabaseType
10-
* @package Tequilla\MongoDB\Command\Type
10+
* @package Tequila\MongoDB\Command\Type
1111
*/
1212
class DropDatabaseType implements CommandTypeInterface
1313
{

src/Command/Type/DropIndexesType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\OptionsResolver;
6-
use Tequilla\MongoDB\Command\CommandTypeInterface;
6+
use Tequila\MongoDB\Command\CommandTypeInterface;
77

88
class DropIndexesType implements CommandTypeInterface
99
{

src/Command/Type/ListCollectionsType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\Options;
66
use Symfony\Component\OptionsResolver\OptionsResolver;
7-
use Tequilla\MongoDB\Command\CommandTypeInterface;
7+
use Tequila\MongoDB\Command\CommandTypeInterface;
88

99
/**
1010
* Class ListCollectionsType
11-
* @package Tequilla\MongoDB\Command\Type
11+
* @package Tequila\MongoDB\Command\Type
1212
*/
1313
class ListCollectionsType implements CommandTypeInterface
1414
{

src/Command/Type/ListDatabasesType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\OptionsResolver;
6-
use Tequilla\MongoDB\Command\CommandTypeInterface;
6+
use Tequila\MongoDB\Command\CommandTypeInterface;
77

88
class ListDatabasesType implements CommandTypeInterface
99
{

src/Command/Type/ListIndexesType.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use Symfony\Component\OptionsResolver\OptionsResolver;
6-
use Tequilla\MongoDB\Command\CommandTypeInterface;
6+
use Tequila\MongoDB\Command\CommandTypeInterface;
77

88
class ListIndexesType implements CommandTypeInterface
99
{

src/Command/Type/PrimaryReadPreferenceTrait.php

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

3-
namespace Tequilla\MongoDB\Command\Type;
3+
namespace Tequila\MongoDB\Command\Type;
44

55
use MongoDB\Driver\ReadPreference;
66

77
/**
88
* Trait PrimaryReadPreferenceTrait
9-
* @package Tequilla\MongoDB\Command\Type
9+
* @package Tequila\MongoDB\Command\Type
1010
*/
1111
trait PrimaryReadPreferenceTrait
1212
{

src/CommandCursor.php

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

3-
namespace Tequilla\MongoDB;
3+
namespace Tequila\MongoDB;
44

55
use MongoDB\Driver\Cursor;
6-
use Tequilla\MongoDB\Exception\LogicException;
6+
use Tequila\MongoDB\Exception\LogicException;
77

88
class CommandCursor
99
{

src/Connection.php

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

3-
namespace Tequilla\MongoDB;
3+
namespace Tequila\MongoDB;
44

55
use MongoDB\Driver\Command;
66
use MongoDB\Driver\Manager;
@@ -9,26 +9,26 @@
99
use MongoDB\Driver\WriteConcern;
1010
use MongoDB\Driver\ReadPreference;
1111
use Symfony\Component\OptionsResolver\OptionsResolver;
12-
use Tequilla\MongoDB\Command\Type\DropIndexesType;
13-
use Tequilla\MongoDB\Command\Type\ListIndexesType;
14-
use Tequilla\MongoDB\Command\CommandBuilder;
15-
use Tequilla\MongoDB\Command\Type\CreateCollectionType;
16-
use Tequilla\MongoDB\Command\Type\CreateIndexesType;
17-
use Tequilla\MongoDB\Command\Type\DropCollectionType;
18-
use Tequilla\MongoDB\Command\Type\DropDatabaseType;
19-
use Tequilla\MongoDB\Command\Type\ListCollectionsType;
20-
use Tequilla\MongoDB\Command\Type\ListDatabasesType;
21-
use Tequilla\MongoDB\Exception\InvalidArgumentException;
22-
use Tequilla\MongoDB\Exception\UnexpectedResultException;
23-
use Tequilla\MongoDB\Options\Connection\ConnectionOptions;
24-
use Tequilla\MongoDB\Options\Driver\DriverOptions;
25-
use Tequilla\MongoDB\Util\StringUtils;
26-
use Tequilla\MongoDB\Util\TypeUtils;
27-
use Tequilla\MongoDB\Traits\ReadPreferenceAndConcernsTrait;
12+
use Tequila\MongoDB\Command\Type\DropIndexesType;
13+
use Tequila\MongoDB\Command\Type\ListIndexesType;
14+
use Tequila\MongoDB\Command\CommandBuilder;
15+
use Tequila\MongoDB\Command\Type\CreateCollectionType;
16+
use Tequila\MongoDB\Command\Type\CreateIndexesType;
17+
use Tequila\MongoDB\Command\Type\DropCollectionType;
18+
use Tequila\MongoDB\Command\Type\DropDatabaseType;
19+
use Tequila\MongoDB\Command\Type\ListCollectionsType;
20+
use Tequila\MongoDB\Command\Type\ListDatabasesType;
21+
use Tequila\MongoDB\Exception\InvalidArgumentException;
22+
use Tequila\MongoDB\Exception\UnexpectedResultException;
23+
use Tequila\MongoDB\Options\Connection\ConnectionOptions;
24+
use Tequila\MongoDB\Options\Driver\DriverOptions;
25+
use Tequila\MongoDB\Util\StringUtils;
26+
use Tequila\MongoDB\Util\TypeUtils;
27+
use Tequila\MongoDB\Traits\ReadPreferenceAndConcernsTrait;
2828

2929
/**
3030
* Class Client
31-
* @package Tequilla\MongoDB
31+
* @package Tequila\MongoDB
3232
*/
3333
class Connection
3434
{

src/Database.php

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

3-
namespace Tequilla\MongoDB;
3+
namespace Tequila\MongoDB;
44

55
/**
66
* Class Database
7-
* @package Tequilla\MongoDB
7+
* @package Tequila\MongoDB
88
*/
99
class Database implements DatabaseInterface
1010
{

src/DatabaseInterface.php

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

3-
namespace Tequilla\MongoDB;
3+
namespace Tequila\MongoDB;
44

55
interface DatabaseInterface
66
{

src/Exception/BadMethodCallException.php

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

3-
namespace Tequilla\MongoDB\Exception;
3+
namespace Tequila\MongoDB\Exception;
44

55

66
class BadMethodCallException extends \BadMethodCallException implements Exception

src/Exception/Exception.php

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

3-
namespace Tequilla\MongoDB\Exception;
3+
namespace Tequila\MongoDB\Exception;
44

55
interface Exception extends \MongoDB\Driver\Exception\Exception
66
{

src/Exception/InvalidArgumentException.php

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

3-
namespace Tequilla\MongoDB\Exception;
3+
namespace Tequila\MongoDB\Exception;
44

55
class InvalidArgumentException extends \MongoDB\Driver\Exception\InvalidArgumentException implements Exception
66
{

0 commit comments

Comments
 (0)