Skip to content

Commit

Permalink
Fix sqsqueue namespace and changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
petrabarus committed Feb 4, 2016
1 parent a2ad082 commit dd795fe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file.

## 1.3.0
- Added implementation for DbQueue and RedisQueue.
- Added events for queue.
- Added `purge` method for queue.
- Refactoring code.

## 1.2.3
- Passing scenario for model and active record.

Expand All @@ -25,7 +31,7 @@ All notable changes to this project will be documented in this file.
## 2015-02-25

### Changed
- Shorten `postJob`, `getJob`, `deleteJob`, `runJob` method name to `post`,
- Shorten `postJob`, `getJob`, `deleteJob`, `runJob` method name to `post`,
`fetch`, `delete`, `run`.

### Fixed
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ or add

to the require section of your `composer.json` file.

To use Redis queue or RabbitMQ, you have to add `yiisoft/yii2-redis:*` or
To use Redis queue or RabbitMQ, you have to add `yiisoft/yii2-redis:*` or
`videlalvaro/php-amqplib: 2.5.*` respectively.

## Setting Up
Expand Down Expand Up @@ -96,7 +96,7 @@ e.g.

```php
class FooController extends UrbanIndo\Yii2\Queue\Worker\Controller {

public function actionBar($param1, $param2){
echo $param1;
}
Expand All @@ -111,7 +111,7 @@ e.g.

```php
class FooController extends UrbanIndo\Yii2\Queue\Worker\Controller {

public function actionBar($param1, $param2){
try {
} catch (\Exception $ex){
Expand Down Expand Up @@ -171,7 +171,7 @@ To use this, add behavior in a component and implement the defined event handler
[
'class' => \UrbanIndo\Yii2\Queue\Behaviors\DeferredEventBehavior::class,
'events' => [
self::EVENT_AFTER_VALIDATE => 'deferAfterValidate',
self::EVENT_AFTER_VALIDATE => 'deferAfterValidate',
]
]
]);
Expand Down Expand Up @@ -201,7 +201,7 @@ object whose attributes are assigned from the attributes of the original object.

### Web End Point

We can use web endpoint to use the queue by adding `\UrbanIndo\Yii2\Queue\Web\Controller`
We can use web endpoint to use the queue by adding `\UrbanIndo\Yii2\Queue\Web\Controller`
to the controller map.

For example
Expand Down Expand Up @@ -255,5 +255,4 @@ To run the tests, in the root directory execute below.

## Road Map

- Add more queue provider such as Redis, MemCache, IronMQ, RabbitMQ.
- Add priority queue.
- Add more queue provider such as MemCache, IronMQ, RabbitMQ.
8 changes: 4 additions & 4 deletions src/Queues/SqsQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @since 2015.02.24
*/

namespace UrbanIndo\Yii2\Queue;
namespace UrbanIndo\Yii2\Queue\Queues;

use \Aws\Sqs\SqsClient;
use UrbanIndo\Yii2\Queue\Job;
Expand All @@ -17,7 +17,7 @@
* @author Petra Barus <petra.barus@gmail.com>
* @since 2015.02.24
*/
class SqsQueue extends Queue
class SqsQueue extends \UrbanIndo\Yii2\Queue\Queue
{

/**
Expand All @@ -33,7 +33,7 @@ class SqsQueue extends Queue
* @var array
*/
public $config = [];

/**
* Due to ability of the queue message to be visible automatically after
* a certain of time, this is not required.
Expand Down Expand Up @@ -128,7 +128,7 @@ public function deleteJob(Job $job)
return false;
}
}

/**
* Release the job.
*
Expand Down

0 comments on commit dd795fe

Please sign in to comment.