Skip to content

Commit

Permalink
Moved Job DatabaseEngine Queue Model to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielsharief committed Mar 13, 2021
1 parent 7db86e7 commit 63b7387
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 25 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [3.21.2] - 2021-03-13

### Changed

- Move Job DatabaseEngine Queue Model to its own file

## [3.21.1] - 2021-03-06

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions src/Job/Engine/BaseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
declare(strict_types = 1);
namespace Origin\Job\Engine;
Expand Down
16 changes: 4 additions & 12 deletions src/Job/Engine/DatabaseEngine.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* OriginPHP Framework
* Copyright 2018 - 2021 Jamiel Sharief.
Expand All @@ -8,24 +7,17 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
*/

declare(strict_types=1);

namespace Origin\Job\Engine;

use Origin\Job\Job;
use Origin\Model\Model;
use Origin\Model\Entity;
use Origin\Model\Concern\Timestampable;

class Queue extends Model
{
use Timestampable;
}
use Origin\Job\Model\Queue;

class DatabaseEngine extends BaseEngine
{
Expand Down
6 changes: 3 additions & 3 deletions src/Job/Engine/RedisConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
declare(strict_types = 1);
namespace Origin\Job\Engine;
Expand Down
6 changes: 3 additions & 3 deletions src/Job/Engine/RedisEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
declare(strict_types = 1);
namespace Origin\Job\Engine;
Expand Down
27 changes: 27 additions & 0 deletions src/Job/Model/Queue.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* OriginPHP Framework
* Copyright 2018 - 2021 Jamiel Sharief.
*
* Licensed under The MIT License
* The above copyright notice and this permission notice shall be included in all copies or substantial
* portions of the Software.
*
* @copyright Copyright (c) Jamiel Sharief
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
declare(strict_types=1);

namespace Origin\Job\Model;

use Origin\Model\Model;
use Origin\Model\Concern\Timestampable;

/**
* Internal model which is used by the Database engine, do not call directly.
*/
class Queue extends Model
{
use Timestampable;
}
4 changes: 0 additions & 4 deletions src/Job/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
* @link https://www.originphp.com
* @license https://opensource.org/licenses/mit-license.php MIT License
*/

/**
* OriginPHP Queue System
*/
declare(strict_types = 1);
namespace Origin\Job;

Expand Down

0 comments on commit 63b7387

Please sign in to comment.