Skip to content

Instantly share code, notes, and snippets.

Alexander Borisov BoShurik

  • Amicus
  • Vladimir, Russia
Block or report user

Report or block BoShurik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PostModel.php
namespace App\Post\Model;
use App\Model\Validator\Constraints\UniqueModel;
* @UniqueModel(class="App\Entity\Post", fields={"user": "user", "slug": "slug"})
class PostModel
public $user;
BoShurik / Item.php
Last active Nov 20, 2018
View Item.php
class Item
* @var Value
public $value;
public function __construct(Value $value)
BoShurik / Color.php
Created Feb 21, 2018
Color value object
View Color.php
final class Color
private $name;
* @param integer $r [0, 255]
* @param integer $g [0, 255]
* @param integer $b [0, 255]
* @return Color
View Kernel.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;
View HelloWorldCommand.php
namespace AppBundle\Telegram\Command;
use BoShurik\TelegramBotBundle\Telegram\Command\AbstractCommand;
use TelegramBot\Api\BotApi;
use TelegramBot\Api\Types\Message;
class HelloWorldCommand extends AbstractCommand
BoShurik / HTML.php
Last active Nov 7, 2019
View HTML.php
use PhpOffice\PhpWord\Element\AbstractContainer;
* Common Html functions
* @SuppressWarnings(PHPMD.UnusedPrivateMethod) For readWPNode
class Html
BoShurik / FragmentPathResolver.php
Created Jul 5, 2016
Fragment path resolver to clear cache for widgets rendered by render_esi
View FragmentPathResolver.php
namespace AppBundle\Cache;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Controller\ControllerReference;
use Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface;
class FragmentPathResolver
You can’t perform that action at this time.