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 | |
declare(strict_types=1); | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Ramsey\Uuid\Uuid; | |
/** |
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 | |
declare(strict_types=1); | |
... | |
use Symfony\Component\Validator\Constraints as Assert; | |
class Command | |
{ |
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 | |
/** | |
* @Route("", name="", methods={"POST"}) | |
* @Permissions(adminPermissions=true) | |
* | |
* @param Task $task | |
* @param Request $request | |
* @param Publish\Handler $handler | |
* @return JsonResponse |
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 TaskRepository | |
{ | |
// __construct() | |
public function getById(Id $id): TaskView | |
{ | |
$sql = ' | |
SELECT |
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 | |
declare(strict_types=1); | |
namespace Kafkiansky\Bot\Bus; | |
use Kafkiansky\Bot\Component\Event\EventDispatcher; | |
use Kafkiansky\Bot\Component\Event\FinishRequestEvent; | |
use Kafkiansky\Bot\Connection; | |
use Kafkiansky\Bot\Http\Request; |
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 | |
interface IpFinderInterface | |
{ | |
public function supports(string $type): bool; | |
public function find(string $uip): ?string; | |
} | |
class IpInfoFinder implements IpFinderInterface | |
{ |