Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:7.4.6-fpm-alpine

WORKDIR /var/www/html

RUN apk update && apk upgrade && apk add --no-cache \
$PHPIZE_DEPS \
&& rm -r /var/cache/apk/*

# Composer
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php && \
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
rm -rf composer-setup.php

COPY . /var/www/html

CMD ["php-fpm"]
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Version | Supported Laravel Versions
0.1.* | 5.1, 5.2
0.2.* | ^5.3.16
0.3.* | ^5.4.9
0.4.* | ^7.0

#### How it Works

Expand Down Expand Up @@ -64,6 +65,17 @@ return [
*/
'command_name' => 'doctrine:queue:work',

/*
|--------------------------------------------------------------------------
| Cache Store
|--------------------------------------------------------------------------
|
| Used by Workers to store job-related temporary data.
| If not specified a default store will be used.
|
*/
'cache_store' => null

];
```

Expand All @@ -77,13 +89,13 @@ All options are identical to Laravel's own `queue:work` method.

#### Contributing

PRs welcome. Please send PRs to the relevant branch (`0.1, 0.2, 0.3`) depending on which version of Laravel you are targeting.
PRs welcome. Please send PRs to the relevant branch (`0.1, 0.2, 0.3, 0.4`) depending on which version of Laravel you are targeting.

Run tests and style fixer.
Run tests. Build and run docker container.

```
vendor/bin/php-cs-fixer fix
vendor/bin/phpunit
docker-compose up -d --build
docker exec -it php-safequeue php vendor/bin/phpunit tests
```

#### Maintenance
Expand Down
12 changes: 5 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
}
],
"require": {
"php": ">=5.6",
"illuminate/queue": "^5.4.9",
"laravel-doctrine/orm": "^1.0"
"php": "^7.2.5",
"illuminate/queue": "^7.0",
"laravel-doctrine/orm": "1.6.*"
},
"require-dev": {
"phpunit/phpunit": "^5.3",
"mockery/mockery": "^0.9.4",
"fabpot/php-cs-fixer": "^1.11",
"satooshi/php-coveralls": "^1.0"
"phpunit/phpunit": "^8.4|^9.0",
"mockery/mockery": "^1.3.1"
},
"autoload": {
"psr-4": {
Expand Down
Loading