Skip to content

Commit e2a3b11

Browse files
committed
Namespace changes
Cleanup before upgrade
1 parent b9221b4 commit e2a3b11

File tree

12 files changed

+27
-96
lines changed

12 files changed

+27
-96
lines changed

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
## SafeQueue
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/maxbrokman/safe-queue.svg)](https://packagist.org/packages/maxbrokman/safe-queue)
4-
[![Build Status](https://travis-ci.org/maxbrokman/SafeQueue.svg?branch=0.3)](https://travis-ci.org/maxbrokman/SafeQueue)
5-
[![Coverage Status](https://coveralls.io/repos/github/maxbrokman/SafeQueue/badge.svg?branch=0.3)](https://coveralls.io/github/maxbrokman/SafeQueue?branch=0.2)
6-
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)
7-
83
A Laravel Queue worker that's safe for use with Laravel Doctrine
94

105
#### When to use SafeQueue
116

12-
- [x] You use Laravel 5
7+
- [x] You use Laravel
138
- [x] You use Laravel Doctrine
149
- [x] Devops say the CPU usage of `queue:listen` is unacceptable
1510
- [x] You want to do `php artisan queue:work --daemon` without hitting cascading `EntityManager is closed` exceptions
@@ -20,7 +15,7 @@ Version | Supported Laravel Versions
2015
------- | --------------------------
2116
0.1.* | 5.1, 5.2
2217
0.2.* | ^5.3.16
23-
0.3.* | ^5.4.9
18+
0.3.* | \> 5.4 & <=5.8.*
2419

2520
#### How it Works
2621

@@ -33,13 +28,13 @@ before working each job.
3328
Install using composer
3429

3530
```
36-
composer require maxbrokman/safe-queue
31+
composer require digbang/safe-queue
3732
```
3833

3934
Once you've got the codez add the following to your service providers in `app.php`
4035

4136
```
42-
MaxBrokman\SafeQueue\DoctrineQueueProvider::class
37+
Digbang\SafeQueue\DoctrineQueueProvider::class
4338
```
4439
##### Lumen
4540

@@ -74,18 +69,3 @@ php artisan doctrine:queue:work connection --daemon -sleep=3 --tries=3 ...
7469
```
7570

7671
All options are identical to Laravel's own `queue:work` method.
77-
78-
#### Contributing
79-
80-
PRs welcome. Please send PRs to the relevant branch (`0.1, 0.2, 0.3`) depending on which version of Laravel you are targeting.
81-
82-
Run tests and style fixer.
83-
84-
```
85-
vendor/bin/php-cs-fixer fix
86-
vendor/bin/phpunit
87-
```
88-
89-
#### Maintenance
90-
91-
I maintain this as part of my day job, please open any issues on Github

composer.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
{
2-
"name": "maxbrokman/safe-queue",
3-
"description": "A Laravel Doctrine friendly daemonising queue worker for Laravel 5",
2+
"name": "digbang/safe-queue",
3+
"description": "A Laravel Doctrine friendly daemonising queue worker for Laravel",
44
"license": "MIT",
55
"authors": [
66
{
77
"name": "Max Brokman",
88
"email": "[email protected]"
9+
},
10+
{
11+
"name": "Dario Govergun",
12+
"email": "[email protected]"
913
}
1014
],
1115
"require": {
12-
"php": ">=5.6",
13-
"illuminate/queue": "^5.4.9",
14-
"laravel-doctrine/orm": "^1.0"
16+
"php": ">=7.2",
17+
"illuminate/queue": "^5.4.9|^6.0|^7.0",
18+
"laravel-doctrine/orm": "^1.3"
1519
},
1620
"require-dev": {
1721
"phpunit/phpunit": "^5.3",
@@ -21,12 +25,12 @@
2125
},
2226
"autoload": {
2327
"psr-4": {
24-
"MaxBrokman\\SafeQueue\\": "src/"
28+
"Digbang\\SafeQueue\\": "src/"
2529
}
2630
},
2731
"autoload-dev": {
2832
"psr-4": {
29-
"test\\MaxBrokman\\SafeQueue\\": "tests/"
33+
"test\\Digbang\\SafeQueue\\": "tests/"
3034
}
3135
}
3236
}

src/Console/WorkCommand.php

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

3-
4-
namespace MaxBrokman\SafeQueue\Console;
3+
namespace Digbang\SafeQueue\Console;
54

65
use Illuminate\Queue\Console\WorkCommand as IlluminateWorkCommand;
7-
use MaxBrokman\SafeQueue\Worker;
6+
use Digbang\SafeQueue\Worker;
87

98
class WorkCommand extends IlluminateWorkCommand
109
{

src/DoctrineQueueProvider.php

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

3-
4-
namespace MaxBrokman\SafeQueue;
3+
namespace Digbang\SafeQueue;
54

65
use Illuminate\Support\ServiceProvider;
7-
use MaxBrokman\SafeQueue\Console\WorkCommand;
6+
use Digbang\SafeQueue\Console\WorkCommand;
87

98
/**
109
* @codeCoverageIgnore

src/EntityManagerClosedException.php

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

3-
4-
namespace MaxBrokman\SafeQueue;
3+
namespace Digbang\SafeQueue;
54

65
use Exception;
76

src/QueueSetupException.php

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

3-
4-
namespace MaxBrokman\SafeQueue;
3+
namespace Digbang\SafeQueue;
54

65
class QueueSetupException extends \Exception
76
{

src/Worker.php

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

3-
4-
namespace MaxBrokman\SafeQueue;
3+
namespace Digbang\SafeQueue;
54

65
use Doctrine\ORM\EntityManager;
76
use Exception;

0 commit comments

Comments
 (0)