Skip to content

Instantly share code, notes, and snippets.

View kolomiec-valeriy's full-sized avatar

Valeriy kolomiec-valeriy

View GitHub Profile
<?php
namespace App\Subscription;
use App\Entity\Subscription\IAPAndroidReceipt;
use App\Exception\InvalidAndroidReceiptException;
use App\Exception\InvalidArgumentsException;
use App\Exception\ReceiptNotFoundException;
use Carbon\Carbon;
use Doctrine\Common\Persistence\ManagerRegistry;
<?php
namespace App\Command;
use App\Entity\ApiUser;
use App\Entity\Subscription\BaseReceipt;
use App\Entity\Subscription\IAPAndroidReceipt;
use App\Subscription\AndroidSubscriptionManager;
use Monolog\Registry;
use Symfony\Bridge\Doctrine\RegistryInterface;
@kolomiec-valeriy
kolomiec-valeriy / UpdateSendInBlueController.php
Created January 23, 2019 09:50
Update SendInBlue subscription
<?php
namespace App\Controller;
use App\Entity\ApiUser;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;
class UpdateSendInBlueController extends Controller
@kolomiec-valeriy
kolomiec-valeriy / ExportBooksController.php
Created March 1, 2019 10:18
Export books with chapters to json files in Zip apchive
<?php
namespace App\Controller;
use App\Entity\BibleBook;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Routing\Annotation\Route;
class ExportBooksController extends Controller
.highcharts-credits {
display: none;
}
.highchart-block {
min-width: 250px;
max-width:500px;
height: 250px;
margin: 0 auto 20px;
}
.page-break {
<?php
namespace App\Service;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\KernelInterface;
<?php
namespace App\Service;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\KernelInterface;
<?php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Process;
<?php
namespace App\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Process;
<?php
namespace App\Service;
use Symfony\Component\HttpFoundation\JsonResponse;
class MessageHelper
{
public function __construct()
{