Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
change namespace
  • Loading branch information
michalsn committed Dec 15, 2023
commit be0eebc5186a3bfc00bdcbb311269dad718001ef
Binary file removed docs/assets/favicon.ico
Binary file not shown.
11 changes: 0 additions & 11 deletions docs/assets/flame.svg

This file was deleted.

15 changes: 0 additions & 15 deletions docs/assets/github-dark-dimmed.css

This file was deleted.

3 changes: 0 additions & 3 deletions docs/assets/hljs.js

This file was deleted.

4 changes: 2 additions & 2 deletions docs/basic_usage.md → docs/basic-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ One of the most popular tasks delegated to a queue is sending email messages. Th
namespace App\Jobs;

use Exception;
use Michalsn\CodeIgniterQueue\BaseJob;
use Michalsn\CodeIgniterQueue\Interfaces\JobInterface;
use CodeIgniter\Queue\BaseJob;
use CodeIgniter\Queue\Interfaces\JobInterface;

class Email extends BaseJob implements JobInterface
{
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The only thing you have to do is to run this command, and you're ready to go.

In the example below we will assume, that files from this project will be located in `app/ThirdParty/queue` directory.

Download this project and then enable it by editing the `app/Config/Autoload.php` file and adding the `Michalsn\CodeIgniterQueue` namespace to the `$psr4` array, like in the below example:
Download this project and then enable it by editing the `app/Config/Autoload.php` file and adding the `CodeIgniter\Queue` namespace to the `$psr4` array, like in the below example:

```php
<?php
Expand All @@ -24,7 +24,7 @@ Download this project and then enable it by editing the `app/Config/Autoload.php
public $psr4 = [
APP_NAMESPACE => APPPATH, // For custom app namespace
'Config' => APPPATH . 'Config',
'Michalsn\CodeIgniterQueue' => APPPATH . 'ThirdParty/queue/src',
'CodeIgniter\Queue' => APPPATH . 'ThirdParty/queue/src',
];

// ...
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/BaseJob.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue;
namespace CodeIgniter\Queue;

abstract class BaseJob
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Generators/JobGenerator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands\Generators;
namespace CodeIgniter\Queue\Commands\Generators;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\GeneratorTrait;
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Generators/Views/job.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace {namespace};

use Michalsn\CodeIgniterQueue\BaseJob;
use Michalsn\CodeIgniterQueue\Interfaces\JobInterface;
use CodeIgniter\Queue\BaseJob;
use CodeIgniter\Queue\Interfaces\JobInterface;

class {class} extends BaseJob implements JobInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/QueueClear.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/QueueFailed.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Config\Queue as QueueConfig;

class QueueFailed extends BaseCommand
{
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/QueueFlush.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/QueueForget.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/QueuePublish.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/QueueRetry.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/QueueStop.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
Expand Down
6 changes: 3 additions & 3 deletions src/Commands/QueueWork.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Michalsn\CodeIgniterQueue\Commands;
namespace CodeIgniter\Queue\Commands;

use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
use Exception;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use CodeIgniter\Queue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Entities\QueueJob;
use Throwable;

class QueueWork extends BaseCommand
Expand Down
10 changes: 5 additions & 5 deletions src/Config/Queue.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace Michalsn\CodeIgniterQueue\Config;
namespace CodeIgniter\Queue\Config;

use CodeIgniter\Config\BaseConfig;
use Michalsn\CodeIgniterQueue\Exceptions\QueueException;
use Michalsn\CodeIgniterQueue\Handlers\DatabaseHandler;
use Michalsn\CodeIgniterQueue\Handlers\PredisHandler;
use Michalsn\CodeIgniterQueue\Handlers\RedisHandler;
use CodeIgniter\Queue\Exceptions\QueueException;
use CodeIgniter\Queue\Handlers\DatabaseHandler;
use CodeIgniter\Queue\Handlers\PredisHandler;
use CodeIgniter\Queue\Handlers\RedisHandler;

class Queue extends BaseConfig
{
Expand Down
4 changes: 2 additions & 2 deletions src/Config/Registrar.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Michalsn\CodeIgniterQueue\Config;
namespace CodeIgniter\Queue\Config;

class Registrar
{
public static function Generators(): array
{
return [
'views' => [
'queue:job' => 'Michalsn\CodeIgniterQueue\Commands\Generators\Views\job.tpl.php',
'queue:job' => 'CodeIgniter\Queue\Commands\Generators\Views\job.tpl.php',
],
];
}
Expand Down
8 changes: 4 additions & 4 deletions src/Config/Services.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Michalsn\CodeIgniterQueue\Config;
namespace CodeIgniter\Queue\Config;

use CodeIgniter\Config\BaseService;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use Michalsn\CodeIgniterQueue\Interfaces\QueueInterface;
use Michalsn\CodeIgniterQueue\Queue;
use CodeIgniter\Queue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Interfaces\QueueInterface;
use CodeIgniter\Queue\Queue;

class Services extends BaseService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Database\Migrations;
namespace CodeIgniter\Queue\Database\Migrations;

use CodeIgniter\Database\Migration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Database\Migrations;
namespace CodeIgniter\Queue\Database\Migrations;

use CodeIgniter\Database\BaseConnection;
use CodeIgniter\Database\Migration;
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/QueueJob.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Entities;
namespace CodeIgniter\Queue\Entities;

use CodeIgniter\Entity\Entity;

Expand Down
2 changes: 1 addition & 1 deletion src/Entities/QueueJobFailed.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Entities;
namespace CodeIgniter\Queue\Entities;

use CodeIgniter\Entity\Entity;

Expand Down
2 changes: 1 addition & 1 deletion src/Enums/Status.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Enums;
namespace CodeIgniter\Queue\Enums;

enum Status: int
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/QueueException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Exceptions;
namespace CodeIgniter\Queue\Exceptions;

use RuntimeException;

Expand Down
12 changes: 6 additions & 6 deletions src/Handlers/BaseHandler.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Michalsn\CodeIgniterQueue\Handlers;
namespace CodeIgniter\Queue\Handlers;

use CodeIgniter\I18n\Time;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use Michalsn\CodeIgniterQueue\Entities\QueueJobFailed;
use Michalsn\CodeIgniterQueue\Exceptions\QueueException;
use Michalsn\CodeIgniterQueue\Models\QueueJobFailedModel;
use CodeIgniter\Queue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Entities\QueueJob;
use CodeIgniter\Queue\Entities\QueueJobFailed;
use CodeIgniter\Queue\Exceptions\QueueException;
use CodeIgniter\Queue\Models\QueueJobFailedModel;
use ReflectionException;
use Throwable;

Expand Down
14 changes: 7 additions & 7 deletions src/Handlers/DatabaseHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Michalsn\CodeIgniterQueue\Handlers;
namespace CodeIgniter\Queue\Handlers;

use CodeIgniter\I18n\Time;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use Michalsn\CodeIgniterQueue\Enums\Status;
use Michalsn\CodeIgniterQueue\Interfaces\QueueInterface;
use Michalsn\CodeIgniterQueue\Models\QueueJobModel;
use Michalsn\CodeIgniterQueue\Payload;
use CodeIgniter\Queue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Entities\QueueJob;
use CodeIgniter\Queue\Enums\Status;
use CodeIgniter\Queue\Interfaces\QueueInterface;
use CodeIgniter\Queue\Models\QueueJobModel;
use CodeIgniter\Queue\Payload;
use ReflectionException;
use Throwable;

Expand Down
12 changes: 6 additions & 6 deletions src/Handlers/PredisHandler.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace Michalsn\CodeIgniterQueue\Handlers;
namespace CodeIgniter\Queue\Handlers;

use CodeIgniter\Exceptions\CriticalError;
use CodeIgniter\I18n\Time;
use Exception;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use Michalsn\CodeIgniterQueue\Enums\Status;
use Michalsn\CodeIgniterQueue\Interfaces\QueueInterface;
use Michalsn\CodeIgniterQueue\Payload;
use CodeIgniter\Queue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Entities\QueueJob;
use CodeIgniter\Queue\Enums\Status;
use CodeIgniter\Queue\Interfaces\QueueInterface;
use CodeIgniter\Queue\Payload;
use Predis\Client;
use Throwable;

Expand Down
12 changes: 6 additions & 6 deletions src/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace Michalsn\CodeIgniterQueue\Handlers;
namespace CodeIgniter\Queue\Handlers;

use CodeIgniter\Exceptions\CriticalError;
use CodeIgniter\I18n\Time;
use Michalsn\CodeIgniterQueue\Config\Queue as QueueConfig;
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use Michalsn\CodeIgniterQueue\Enums\Status;
use Michalsn\CodeIgniterQueue\Interfaces\QueueInterface;
use Michalsn\CodeIgniterQueue\Payload;
use CodeIgniter\Queue\Config\Queue as QueueConfig;
use CodeIgniter\Queue\Entities\QueueJob;
use CodeIgniter\Queue\Enums\Status;
use CodeIgniter\Queue\Interfaces\QueueInterface;
use CodeIgniter\Queue\Payload;
use Redis;
use RedisException;
use Throwable;
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/JobInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Michalsn\CodeIgniterQueue\Interfaces;
namespace CodeIgniter\Queue\Interfaces;

interface JobInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Interfaces/QueueInterface.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Michalsn\CodeIgniterQueue\Interfaces;
namespace CodeIgniter\Queue\Interfaces;

use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use CodeIgniter\Queue\Entities\QueueJob;
use Throwable;

interface QueueInterface
Expand Down
4 changes: 2 additions & 2 deletions src/Models/QueueJobFailedModel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Michalsn\CodeIgniterQueue\Models;
namespace CodeIgniter\Queue\Models;

use CodeIgniter\Model;
use Michalsn\CodeIgniterQueue\Entities\QueueJobFailed;
use CodeIgniter\Queue\Entities\QueueJobFailed;

class QueueJobFailedModel extends Model
{
Expand Down
6 changes: 3 additions & 3 deletions src/Models/QueueJobModel.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Michalsn\CodeIgniterQueue\Models;
namespace CodeIgniter\Queue\Models;

use CodeIgniter\Database\BaseBuilder;
use CodeIgniter\Database\RawSql;
use CodeIgniter\I18n\Time;
use CodeIgniter\Model;
use Michalsn\CodeIgniterQueue\Entities\QueueJob;
use Michalsn\CodeIgniterQueue\Enums\Status;
use CodeIgniter\Queue\Entities\QueueJob;
use CodeIgniter\Queue\Enums\Status;
use ReflectionException;

class QueueJobModel extends Model
Expand Down
Loading