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\Model; | |
use App\Model\Attributes\FromBody; | |
use App\Model\Attributes\FromQuery; | |
use App\Model\Attributes\FromRequest; | |
use App\Model\Attributes\Model; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ServerRequestInterface; |
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\Madeline; | |
use danog\MadelineProto\API; | |
use danog\MadelineProto\Logger; | |
use danog\MadelineProto\Settings; | |
use Psr\Log\LoggerInterface; | |
use Psr\Log\LogLevel; |
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 | |
use Symfony\Component\Validator\Mapping\ClassMetadataInterface; | |
use Symfony\Component\Validator\Mapping\PropertyMetadata; | |
use Symfony\Component\Validator\Validator\ValidatorInterface; | |
class ConstraintDumper | |
{ | |
public function __construct(private readonly ValidatorInterface $validator) | |
{ |
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
namespace App\Post\Model; | |
use App\Model\Validator\Constraints\UniqueModel; | |
/** | |
* @UniqueModel(class="App\Entity\Post", fields={"user": "user", "slug": "slug"}) | |
*/ | |
class PostModel | |
{ | |
public $user; |
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 Item | |
{ | |
/** | |
* @var Value | |
*/ | |
public $value; | |
public function __construct(Value $value) |
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 | |
final class Color | |
{ | |
private $name; | |
/** | |
* @param integer $r [0, 255] | |
* @param integer $g [0, 255] | |
* @param integer $b [0, 255] | |
* @return Color |
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 App\DependencyInjection\Configuration; | |
use App\DependencyInjection\FeedbackLoader; | |
use App\DependencyInjection\PagesLoader; | |
use App\DependencyInjection\YamlFileLoader; | |
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; | |
use Symfony\Component\Config\Definition\Processor; |
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 AppBundle\Telegram\Command; | |
use BoShurik\TelegramBotBundle\Telegram\Command\AbstractCommand; | |
use TelegramBot\Api\BotApi; | |
use TelegramBot\Api\Types\Message; | |
class HelloWorldCommand extends AbstractCommand | |
{ |
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 | |
use PhpOffice\PhpWord\Element\AbstractContainer; | |
/** | |
* Common Html functions | |
* | |
* @SuppressWarnings(PHPMD.UnusedPrivateMethod) For readWPNode | |
*/ | |
class Html |
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 AppBundle\Cache; | |
use Symfony\Component\HttpFoundation\RequestStack; | |
use Symfony\Component\HttpKernel\Controller\ControllerReference; | |
use Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface; | |
class FragmentPathResolver | |
{ |