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
<?php | |
namespace App; | |
use PhpAmqpLib\Connection\AMQPStreamConnection; | |
use PhpAmqpLib\Message\AMQPMessage; | |
class CommandListener | |
{ | |
/** |
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
<?php | |
namespace GoSale\RabbitMQ; | |
abstract class HandlerAbstract implements HandlerInterface | |
{ | |
/** | |
* @var array | |
*/ | |
protected $payload; |
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
<?php | |
class CreateAction extends Action | |
{ | |
private function save(Product $model) | |
{ | |
$bodyParams = Yii::$app->getRequest()->getBodyParams(); | |
if (!isset($bodyParams['colors']) || empty($bodyParams['colors'])) { |
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
<?php | |
namespace Tests\Unit\Domain\Auth; | |
use App\Domain\Auth\JWTHelper; | |
use App\Domain\Client\Client; | |
use App\Domain\Group; | |
use App\Domain\User\User; | |
use PHPUnit\Framework\TestCase; |
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
<?php | |
namespace Tests\Unit\Domain\User\Behaviors; | |
use Yii; | |
use App\Domain\User\Behaviors\CryptPassword; | |
use App\Domain\User\User; | |
use yii\db\ActiveRecord; | |
use Tests\TestCase; |
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
<?php | |
// https://gitlab.com/getto/go-sale/blob/develop/services/auth/src/Http/Location/CitiesAction.php | |
namespace App\Http\Location; | |
use Yii; | |
use App\Domain\Location\CityRepository; | |
use yii\base\Action; |
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
// src/utils/services/Api.js | |
import Http from './Http' | |
/** | |
* @typedef {Api} | |
*/ | |
export default class Api { | |
static base = '/v1'; |
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
<?php | |
class Xpto | |
{ | |
public function addPoints($amount) | |
{ | |
return $this->addOrRemovePoints($amount, 'add'); | |
} | |
public function removePoints($amount) | |
{ |
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
<?php | |
namespace App\Domains\Auth\Forms; | |
use Yii; | |
use App\Domains\User\Entity\User; | |
use yii\base\Model; | |
/** | |
* LoginForm is the model behind the login form. |
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
<?php | |
namespace App\Infra\DomainActions; | |
use App\Infra\ActiveRecord\ActiveRecordAbstract; | |
abstract class ActionsAbstract | |
{ | |
/** | |
* @return string |
OlderNewer