-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from WajoxSoftware/extract-payment-module
Extract payment module
- Loading branch information
Showing
352 changed files
with
2,209 additions
and
2,953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/vendor/ | ||
.php_cs.cache | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
namespace wajox\yii2base\commands; | ||
|
||
use yii\console\Controller; | ||
|
||
class ActionLogsController extends Controller | ||
{ | ||
public function actionCreate($typeId, $itemId, $userId, $jsonParams) | ||
{ | ||
$user = \Yii::$app | ||
->usersManager | ||
->findById($userId); | ||
|
||
\Yii::$app | ||
->actionLogs | ||
->log( | ||
$typeId, | ||
$itemId, | ||
$userId, | ||
json_decode($jsonParams, true) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
namespace wajox\yii2base\components\console; | ||
|
||
class Command | ||
{ | ||
protected $command; | ||
protected $params = []; | ||
|
||
public function __construct($command, $params = []) | ||
{ | ||
$this->command = $command; | ||
$this->params = $params; | ||
} | ||
|
||
public function run($async = false) | ||
{ | ||
$params = []; | ||
foreach ($this->params as $key => $param) { | ||
$params[$key] = '"' . $param . '"'; | ||
} | ||
|
||
$cmd = 'php ' . \Yii::getAlias('@app/yii') | ||
. ' ' . $this->command | ||
. ' ' . implode(' ', $params); | ||
. ($async ? ' >> /dev/null &' : ''); | ||
|
||
return shell_exec($cmd); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
namespace wajox\yii2base\components\console; | ||
|
||
use wajox\yii2base\components\base\Object; | ||
|
||
class CommandsManager extends Object | ||
{ | ||
public function run($cmd, $params, $async = false) | ||
{ | ||
return (new Command($cmd, $params))->run($async); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
namespace wajox\yii2base\events; | ||
|
||
use yii\base\Event; | ||
|
||
class EmailListEvent extends Event | ||
{ | ||
const EVENT_SUBSCRIBE = 'subscribed'; | ||
const EVENT_UNSUBSCRIBE = 'unsubscribed'; | ||
|
||
public $emailList; | ||
public $subscribe; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
namespace wajox\yii2base\events; | ||
|
||
use yii\base\Event; | ||
|
||
class MessageUserStatusEvent extends Event | ||
{ | ||
const EVENT_CREATED = 'created'; | ||
const EVENT_READ = 'read'; | ||
const EVENT_DELETED = 'deleted'; | ||
|
||
public $messageUserStatus; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/services/events/types/StatisticEvent.php → src/events/StatisticEvent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
namespace wajox\yii2base\services\events\types; | ||
namespace wajox\yii2base\events; | ||
|
||
use yii\base\Event; | ||
|
||
class StatisticEvent extends Event | ||
{ | ||
const EVENT_NEW = 'new_view'; | ||
const EVENT_NEW = 'view'; | ||
|
||
public $statistic; | ||
} |
Oops, something went wrong.