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
andrew:/tmp$ composer require knplabs/knp-paginator-bundle --profile | |
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug | |
[63.8MB/10.30s] Using version ^2.5 for knplabs/knp-paginator-bundle | |
[64.0MB/10.30s] ./composer.json has been created | |
[65.1MB/10.46s] Loading composer repositories with package information | |
[65.3MB/10.80s] Updating dependencies (including require-dev) | |
[286.5MB/72.84s] - Installing twig/twig (v1.24.0) | |
[286.6MB/72.88s] Loading from cache | |
[286.8MB/72.99s] | |
[286.7MB/73.00s] - Installing knplabs/knp-components (1.3.2) |
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\Security\Authentication; | |
use AGILEmentBundle\Entity\User; | |
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; | |
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
class AutoLogin | |
{ |
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
[2016-11-27 16:32:27] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occurred while executing 'INSERT INTO `wallabag_entry` (uuid, title, url, is_archived, is_starred, content, created_at, updated_at, mimetype, language, reading_time, domain_name, preview_picture, is_public, user_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [null, "How to encrypt your entire life in less than an hour", "https:\/\/medium.freecodecamp.com\/tor-signal-and-beyond-a-law-abiding-citizens-guide-to-privacy-1a593f2104c3?gi=45f85b8c3f2", 0, 0, "<blockquote name=\"604b\" id=\"604b\" class=\"graf graf--pullquote graf--startsWithDoubleQuote graf-after--figure\">\u201cOnly the paranoid survive.\u201d\u200a\u2014\u200aAndy\u00a0Grove<\/blockquote><p name=\"e1f9\" id=\"e1f9\" class=\"graf graf--p graf-after--pullquote\">Andy Grove was a Hungarian refugee who escaped communism, studied engineering, and ultimately led the personal computer revolution as the CEO of Intel. |
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
# usage: cat app/config/parameters.yml | bin/yq '[parameters][database_host]' | |
#!/usr/bin/env php | |
<?php | |
use Symfony\Component\Console\Input\ArgvInput; | |
use Symfony\Component\PropertyAccess\PropertyAccess; | |
use Symfony\Component\Yaml\Yaml; | |
$loader = require __DIR__ . '/../app/autoload.php'; |
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 | |
$finder = PhpCsFixer\Finder::create() | |
->in([__DIR__.'/src', __DIR__.'/tests']); | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@Symfony' => true, | |
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], | |
'no_multiline_whitespace_before_semicolons' => true, |
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
#!/usr/bin/env php | |
<?php | |
use Symfony\Bundle\FrameworkBundle\Console\Application; | |
use Symfony\Component\Console\Input\ArgvInput; | |
use Symfony\Component\Debug\Debug; | |
// if you don't want to setup permissions the proper way, just uncomment the following PHP line | |
// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information | |
//umask(0000); |
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\Infra\Redis; | |
use Webmozart\Assert\Assert; | |
class NativeProtocolExporter | |
{ | |
const NEWLINE = "\r\n"; |
OlderNewer