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\HttpFoundation\StreamedResponse; | |
use Symfony\Component\Process\Process; | |
class StreamedProcessResponse extends StreamedResponse | |
{ | |
public function __construct(Process $process, $status = 200, $headers = array()) | |
{ | |
$callback = function() use ($process) { |
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 Foo\BarBundle\Facebook; | |
use FOS\FacebookBundle\Facebook\FacebookSessionPersistence as BaseFacebookSessionPersistence; | |
use Symfony\Component\HttpFoundation\Session\Session; | |
/** | |
* Quick (and dirty) fix for running tests using FosFacebookBundle. | |
* It may have unwanted consequences (not tested)! |
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
{% block subject 'Hello World' %} | |
{% block body_html %} | |
{% embed "layout_mail.html.twig" %} | |
{% block content %} | |
I'm the <b>content</b>. | |
{% endblock %} | |
{% endembed %} | |
{% endblock %} |
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\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\ConsoleOutputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
/** | |
* Testcase: app/console foo > std 2> err | |
*/ |
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\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\NullOutput; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class NullOutputCommand extends Command |
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 | |
require __DIR__.'/vendor/autoload.php'; | |
use Psr\Log\LoggerInterface; | |
use Psr\Log\NullLogger; | |
use Monolog\Logger; | |
interface LoggerAwareInterface | |
{ |
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 | |
/** | |
* @see https://github.com/geocoder-php/Geocoder/blob/21e562a5ad595c6fee7a33ae90e0b42dc8866c23/src/Geocoder/Provider/GoogleMapsBusinessProvider.php#L82 | |
*/ | |
function signQuery($query, $privateKey) | |
{ | |
$url = parse_url($query); |
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 | |
// see https://github.com/liip/LiipProcessManager/ | |
require __DIR__.'/vendor/autoload.php'; | |
use Liip\ProcessManager\ProcessManager; | |
use Liip\ProcessManager\PidFile; | |
try { | |
$lock = new PidFile(new ProcessManager(), '/tmp/foobar'); |
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
http://www.tagcommander.com/en/ | |
http://ensighten.com/ | |
http://www.opentag.qubitproducts.com/ | |
https://www.google.com/tagmanager/ |
OlderNewer