Skip to content

Commit 61b2844

Browse files
committed
Fresh
1 parent 59c6971 commit 61b2844

9 files changed

+90
-379
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "stackkit/laravel-google-pubsub-queue",
2+
"name": "stackkit/laravel-google-cloud-tasks-queue",
33
"license": "MIT",
44
"authors": [
55
{
@@ -9,7 +9,7 @@
99
],
1010
"require": {
1111
"ext-json": "*",
12-
"google/cloud-pubsub": "^1.24"
12+
"google/cloud-tasks": "^1.6"
1313
},
1414
"require-dev": {
1515
"mockery/mockery": "^1.2",
@@ -18,13 +18,13 @@
1818
},
1919
"autoload": {
2020
"psr-4": {
21-
"Stackkit\\LaravelGooglePubSubQueue\\": "src/"
21+
"Stackkit\\LaravelGoogleCloudTasksQueue\\": "src/"
2222
}
2323
},
2424
"extra": {
2525
"laravel": {
2626
"providers": [
27-
"Stackkit\\LaravelGooglePubSubQueue\\LaravelGooglePubSubQueueServiceProvider"
27+
"Stackkit\\LaravelGoogleCloudTasksQueue\\CloudTasksServiceProvider"
2828
]
2929
}
3030
}

src/CloudTasksConnector.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Stackkit\LaravelGoogleCloudTasksQueue;
4+
5+
use Illuminate\Queue\Connectors\ConnectorInterface;
6+
7+
class CloudTasksConnector implements ConnectorInterface
8+
{
9+
public function connect(array $config)
10+
{
11+
return new CloudTasksQueue();
12+
}
13+
}

src/CloudTasksJob.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Stackkit\LaravelGoogleCloudTasksQueue;
4+
5+
use Illuminate\Queue\Jobs\Job as LaravelJob;
6+
use Illuminate\Contracts\Queue\Job as JobContract;
7+
8+
class CloudTasksJob extends LaravelJob implements JobContract
9+
{
10+
public function getJobId()
11+
{
12+
// TODO: Implement getJobId() method.
13+
}
14+
15+
public function getRawBody()
16+
{
17+
// TODO: Implement getRawBody() method.
18+
}
19+
20+
public function attempts()
21+
{
22+
// TODO: Implement attempts() method.
23+
}
24+
}

src/CloudTasksQueue.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Stackkit\LaravelGoogleCloudTasksQueue;
4+
5+
use Illuminate\Contracts\Queue\Queue as QueueContract;
6+
use Illuminate\Queue\Queue as LaravelQueue;
7+
8+
class CloudTasksQueue extends LaravelQueue implements QueueContract
9+
{
10+
public function size($queue = null)
11+
{
12+
// TODO: Implement size() method.
13+
}
14+
15+
public function push($job, $data = '', $queue = null)
16+
{
17+
// TODO: Implement push() method.
18+
}
19+
20+
public function pushRaw($payload, $queue = null, array $options = [])
21+
{
22+
// TODO: Implement pushRaw() method.
23+
}
24+
25+
public function later($delay, $job, $data = '', $queue = null)
26+
{
27+
// TODO: Implement later() method.
28+
}
29+
30+
public function pop($queue = null)
31+
{
32+
// TODO: Implement pop() method.
33+
}
34+
}

src/CloudTasksServiceProvider.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Stackkit\LaravelGoogleCloudTasksQueue;
4+
5+
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
6+
7+
class CloudTasksServiceProvider extends LaravelServiceProvider
8+
{
9+
public function boot()
10+
{
11+
$this->app['queue']->addConnector('cloudtasks', function () {
12+
return new CloudTasksConnector;
13+
});
14+
}
15+
}

src/LaravelGooglePubSubQueueServiceProvider.php

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

src/PubSubConnector.php

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

src/PubSubJob.php

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

0 commit comments

Comments
 (0)