Skip to content

Commit a6dc601

Browse files
committed
Change namespace to avoid conflicts
1 parent 45bc208 commit a6dc601

File tree

9 files changed

+28
-28
lines changed

9 files changed

+28
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ This package is a Laravel 5.7 queue driver that use the [Google PubSub](https://
1010
You can easily install this package with [Composer](https://getcomposer.org) by running this command :
1111

1212
```bash
13-
composer require kainxspirits/laravel-pubsub-queue
13+
composer require PubSub/laravel-pubsub-queue
1414
```
1515

1616
If you disabled package discovery, you can still manually register this package by adding the following line to the providers of your `config/app.php` file :
1717

1818
```php
19-
Kainxspirits\PubSubQueue\PubSubQueueServiceProvider::class,
19+
PubSub\PubSubQueue\PubSubQueueServiceProvider::class,
2020
```
2121

2222
## Configuration

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "kainxspirits/laravel-pubsub-queue",
2+
"name": "munir131/laravel-pubsub-queue",
33
"description": "Queue driver for Google Cloud Pub/Sub.",
44
"keywords": [
5-
"kainxspirits",
5+
"munir131",
66
"laravel",
77
"queue",
88
"gcp",
@@ -13,8 +13,8 @@
1313
"type": "library",
1414
"authors": [
1515
{
16-
"name": "Kendryck",
17-
"email": "kainxspirits@users.noreply.github.com"
16+
"name": "Munir Khakhi",
17+
"email": "munir131@users.noreply.github.com"
1818
}
1919
],
2020
"require": {
@@ -27,12 +27,12 @@
2727
},
2828
"autoload": {
2929
"psr-4": {
30-
"Kainxspirits\\PubSubQueue\\": "src/"
30+
"PubSub\\PubSubQueue\\": "src/"
3131
}
3232
},
3333
"autoload-dev": {
3434
"psr-4": {
35-
"Kainxspirits\\PubSubQueue\\Tests\\": "tests/"
35+
"PubSub\\PubSubQueue\\Tests\\": "tests/"
3636
}
3737
},
3838
"scripts": {
@@ -41,7 +41,7 @@
4141
"extra": {
4242
"laravel": {
4343
"providers": [
44-
"Kainxspirits\\PubSubQueue\\PubSubQueueServiceProvider"
44+
"PubSub\\PubSubQueue\\PubSubQueueServiceProvider"
4545
]
4646
}
4747
},

src/Connectors/PubSubConnector.php

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

3-
namespace Kainxspirits\PubSubQueue\Connectors;
3+
namespace PubSub\PubSubQueue\Connectors;
44

55
use Google\Cloud\PubSub\PubSubClient;
6-
use Kainxspirits\PubSubQueue\PubSubQueue;
6+
use PubSub\PubSubQueue\PubSubQueue;
77
use Illuminate\Queue\Connectors\ConnectorInterface;
88

99
class PubSubConnector implements ConnectorInterface

src/Jobs/PubSubJob.php

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

3-
namespace Kainxspirits\PubSubQueue\Jobs;
3+
namespace PubSub\PubSubQueue\Jobs;
44

55
use Illuminate\Queue\Jobs\Job;
66
use Google\Cloud\PubSub\Message;
77
use Illuminate\Container\Container;
8-
use Kainxspirits\PubSubQueue\PubSubQueue;
8+
use PubSub\PubSubQueue\PubSubQueue;
99
use Illuminate\Contracts\Queue\Job as JobContract;
1010

1111
class PubSubJob extends Job implements JobContract
1212
{
1313
/**
1414
* The PubSub queue.
1515
*
16-
* @var \Kainxspirits\PubSubQueue\PubSubQueue
16+
* @var \PubSub\PubSubQueue\PubSubQueue
1717
*/
1818
protected $pubsub;
1919

@@ -28,7 +28,7 @@ class PubSubJob extends Job implements JobContract
2828
* Create a new job instance.
2929
*
3030
* @param \Illuminate\Container\Container $container
31-
* @param \Kainxspirits\PubSubQueue\PubSubQueue $sqs
31+
* @param \PubSub\PubSubQueue\PubSubQueue $sqs
3232
* @param \Google\Cloud\PubSub\Message $job
3333
* @param string $connectionName
3434
* @param string $queue

src/PubSubQueue.php

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

3-
namespace Kainxspirits\PubSubQueue;
3+
namespace PubSub\PubSubQueue;
44

55
use Illuminate\Queue\Queue;
66
use Illuminate\Support\Str;
77
use Google\Cloud\PubSub\Topic;
88
use Google\Cloud\PubSub\Message;
99
use Google\Cloud\PubSub\PubSubClient;
10-
use Kainxspirits\PubSubQueue\Jobs\PubSubJob;
10+
use PubSub\PubSubQueue\Jobs\PubSubJob;
1111
use Illuminate\Contracts\Queue\Queue as QueueContract;
1212

1313
class PubSubQueue extends Queue implements QueueContract

src/PubSubQueueServiceProvider.php

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

3-
namespace Kainxspirits\PubSubQueue;
3+
namespace PubSub\PubSubQueue;
44

55
use Illuminate\Support\ServiceProvider;
6-
use Kainxspirits\PubSubQueue\Connectors\PubSubConnector;
6+
use PubSub\PubSubQueue\Connectors\PubSubConnector;
77

88
class PubSubQueueServiceProvider extends ServiceProvider
99
{

tests/Unit/Connectors/PubSubConnectorTests.php

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

3-
namespace Kainxspirits\PubSubQueue\Tests\Unit\Connectors;
3+
namespace PubSub\PubSubQueue\Tests\Unit\Connectors;
44

55
use ReflectionClass;
66
use PHPUnit\Framework\TestCase;
7-
use Kainxspirits\PubSubQueue\PubSubQueue;
7+
use PubSub\PubSubQueue\PubSubQueue;
88
use Illuminate\Queue\Connectors\ConnectorInterface;
9-
use Kainxspirits\PubSubQueue\Connectors\PubSubConnector;
9+
use PubSub\PubSubQueue\Connectors\PubSubConnector;
1010

1111
class PubSubConnectorTests extends TestCase
1212
{

tests/Unit/Jobs/PubSubJobTests.php

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

3-
namespace Kainxspirits\PubSubQueue\Tests\Unit\Jobs;
3+
namespace PubSub\PubSubQueue\Tests\Unit\Jobs;
44

55
use ReflectionClass;
66
use PHPUnit\Framework\TestCase;
77
use Google\Cloud\PubSub\Message;
88
use Illuminate\Container\Container;
99
use Google\Cloud\PubSub\PubSubClient;
10-
use Kainxspirits\PubSubQueue\PubSubQueue;
11-
use Kainxspirits\PubSubQueue\Jobs\PubSubJob;
10+
use PubSub\PubSubQueue\PubSubQueue;
11+
use PubSub\PubSubQueue\Jobs\PubSubJob;
1212
use Illuminate\Contracts\Queue\Job as JobContract;
1313

1414
class PubSubJobTests extends TestCase

tests/Unit/PubSubQueueTests.php

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

3-
namespace Kainxspirits\PubSubQueue\Tests\Unit;
3+
namespace PubSub\PubSubQueue\Tests\Unit;
44

55
use Carbon\Carbon;
66
use ReflectionClass;
@@ -10,8 +10,8 @@
1010
use Illuminate\Container\Container;
1111
use Google\Cloud\PubSub\PubSubClient;
1212
use Google\Cloud\PubSub\Subscription;
13-
use Kainxspirits\PubSubQueue\PubSubQueue;
14-
use Kainxspirits\PubSubQueue\Jobs\PubSubJob;
13+
use PubSub\PubSubQueue\PubSubQueue;
14+
use PubSub\PubSubQueue\Jobs\PubSubJob;
1515
use Illuminate\Contracts\Queue\Queue as QueueContract;
1616

1717
class PubSubQueueTests extends TestCase

0 commit comments

Comments
 (0)