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\Security; | |
use App\Models\Entity\User; | |
use App\Models\ValueObject\TelegramAccount; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
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 Bigfoot\PHPacto\PHPacto; | |
use Bigfoot\PHPacto\Guzzle\ProviderMock; | |
use Bigfoot\PHPacto\Guzzle\ProviderMockGuzzle6; | |
use Bigfoot\PHPacto\Loader\PactLoader; | |
use GuzzleHttp\Client as GuzzleClient; | |
use PHPUnit\Framework\TestCase; | |
class Consumer |
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
SELECT | |
q.year, | |
(SELECT COUNT(q1) FROM AppBundle\Entity\CarPark q1 WHERE q1 = q AND q1.producer = "Audi") AS Audi | |
(SELECT COUNT(q1) FROM AppBundle\Entity\CarPark q1 WHERE q1 = q AND q1.producer = "BMW") AS BMW | |
(SELECT COUNT(q1) FROM AppBundle\Entity\CarPark q1 WHERE q1 = q AND q1.producer = "Mercedes") AS Mercedes | |
FROM AppBundle\Entity\CarPark q | |
GROUP BY q.year | |
ORDER BY q.year ASC |
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
var eventiply = {}; | |
eventiply.formToArray = function(form){ | |
var postVars = {}; | |
$(form).find('input').each(function(i,obj){ | |
postVars[$(obj).attr('name')] = $(obj).val(); | |
}); | |
$(form).find('select').each(function(i,obj){ | |
postVars[$(obj).attr('name')] = $(obj).val(); |