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 | |
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
<?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) { |
NewerOlder