Skip to content

Commit

Permalink
Merge pull request #1 from hyperia-sk/rebranding
Browse files Browse the repository at this point in the history
Fix path for yii autoloader + change namespace
  • Loading branch information
jurajkalafut authored Apr 7, 2022
2 parents 163bd66 + 33a1c28 commit a2e6dae
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
4 changes: 1 addition & 3 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Yii Cron extension
==================

[![Latest Stable Version](https://poser.pugx.org/yiicod/yii2-cron/v/stable)](https://packagist.org/packages/yiicod/yii2-cron) [![Total Downloads](https://poser.pugx.org/yiicod/yii2-cron/downloads)](https://packagist.org/packages/yiicod/yii2-cron) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yiicod/yii2-cron/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yiicod/yii2-cron/?branch=master)[![Code Climate](https://codeclimate.com/github/yiicod/yii2-cron/badges/gpa.svg)](https://codeclimate.com/github/yiicod/yii2-cron)

Provide a logic and functionality to block console commands until they execute.
Unlocks commands exhibited at the expiration of the block if the server is down.

Expand All @@ -12,7 +10,7 @@ public function behaviors()
{
return array(
'LockUnLockBehavior' => array(
'class' => 'yiicod\cron\commands\behaviors\LockUnLockBehavior',
'class' => 'hyperia\cron\commands\behaviors\LockUnLockBehavior',
'timeLock' => 0 //Set time lock duration for command in seconds
)
);
Expand Down
10 changes: 5 additions & 5 deletions commands/DaemonController.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php

namespace yiicod\cron\commands;
namespace hyperia\cron\commands;

use Yii;
use yii\console\Controller;
use yii\helpers\Console;
use yiicod\cron\commands\exceptions\IsNotRunningException;
use yiicod\cron\commands\exceptions\IsRunningException;
use yiicod\cron\commands\traits\DaemonTrait;
use hyperia\cron\commands\exceptions\IsNotRunningException;
use hyperia\cron\commands\exceptions\IsRunningException;
use hyperia\cron\commands\traits\DaemonTrait;

/**
* Class DaemonController
* Daemon controller for console
*
* @package yiicod\cron\commands
* @package hyperia\cron\commands
*/
abstract class DaemonController extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion commands/FileOutput.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license http://www.yiiframework.com/license/
*/

namespace yiicod\cron\commands;
namespace hyperia\cron\commands;

use yii\base\InvalidConfigException;

Expand Down
2 changes: 1 addition & 1 deletion commands/behaviors/LockUnLockBehavior.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yiicod\cron\commands\behaviors;
namespace hyperia\cron\commands\behaviors;

use Yii;
use yii\base\Behavior;
Expand Down
2 changes: 1 addition & 1 deletion commands/exceptions/IsNotRunningException.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yiicod\cron\commands\exceptions;
namespace hyperia\cron\commands\exceptions;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion commands/exceptions/IsRunningException.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace yiicod\cron\commands\exceptions;
namespace hyperia\cron\commands\exceptions;

use Exception;

Expand Down
10 changes: 5 additions & 5 deletions commands/traits/DaemonTrait.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace yiicod\cron\commands\traits;
namespace hyperia\cron\commands\traits;

use Exception;
use Yii;
use yiicod\cron\commands\exceptions\IsNotRunningException;
use yiicod\cron\commands\exceptions\IsRunningException;
use yiicod\cron\commands\FileOutput;
use hyperia\cron\commands\exceptions\IsNotRunningException;
use hyperia\cron\commands\exceptions\IsRunningException;
use hyperia\cron\commands\FileOutput;

/**
* Trait DaemonTrait
*
* @package yiicod\cron\commands\traits
* @package hyperia\cron\commands\traits
*/
trait DaemonTrait
{
Expand Down
4 changes: 2 additions & 2 deletions composer.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "yiicod/yii2-cron",
"name": "hyperia/yii2-cron",
"description": "Auto block|unblock console command for the Yii2. One command without duplicate.",
"type": "yii2-extension",
"license": "MIT",
Expand All @@ -22,7 +22,7 @@
],
"autoload": {
"psr-4": {
"yiicod\\cron\\": "/"
"hyperia\\cron\\": ""
}
}
}

0 comments on commit a2e6dae

Please sign in to comment.