-
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.
- Loading branch information
Showing
39 changed files
with
2,232 additions
and
479 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,2 +1,5 @@ | ||
NAME=yogi | ||
BUILD=dev | ||
BUILD=dev | ||
CSRF_SECRET_KEY="dara" | ||
GEMSTONE_SECRET=c6ee9e3efac2a6b4a47fdfa4a4dbef77ca3e45aa8dab8ca07c181373dea2f90e | ||
GEMSTONE_ALGO=HS256 |
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,17 @@ | ||
<?php | ||
|
||
namespace Xel\Devise; | ||
|
||
use DI\Container; | ||
use Swoole\Http\Request; | ||
use Xel\Async\CentralManager\CentralManagerRunner; | ||
use Xel\Devise\Service\Gemstone\DataProcessor; | ||
use Xel\Devise\Service\Gemstone\FileProcessor; | ||
|
||
abstract class AbstractService | ||
{ | ||
use DataProcessor, FileProcessor; | ||
public Request $serverRequest; | ||
public Container $container; | ||
public CentralManagerRunner $return; | ||
} |
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,34 @@ | ||
<?php | ||
|
||
namespace Xel\Devise\BaseData; | ||
use Exception; | ||
use Xel\DB\QueryBuilder\QueryDML; | ||
|
||
class Projects | ||
{ | ||
public string $table = 'projects'; | ||
public array $permitted = [ | ||
'user_id', | ||
'project_title', | ||
'deadline', | ||
'description', | ||
'reward_point', | ||
'file', | ||
'status', | ||
]; | ||
public function __construct(private readonly QueryDML $queryDML) | ||
{} | ||
|
||
/** | ||
* @throws Exception | ||
*/ | ||
public function selectAll(): array | ||
{ | ||
return $this | ||
->queryDML | ||
->select($this->permitted) | ||
->from($this->table) | ||
->get(); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.