This file contains hidden or 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
{ | |
"guid": "http:\/\/www.ncregister.com\/daily-news\/bethlehems-catholic-maternity-hospital-hit-hard-by-holy-land-coronavirus-lo", | |
"slugline": "bethlehem-8217-s-catholic-maternity-hospital-hit-hard-by-holy-land-coronavirus-lockdown", | |
"priority": 5, | |
"service": [ | |
{ | |
"name": "World", | |
"code": "world" | |
} | |
], |
This file contains hidden or 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 Deployer; | |
use Deployer\Task\Context; | |
require 'recipe/symfony.php'; | |
// Servers | |
inventory('servers.yaml'); |
This file contains hidden or 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
[unix_http_server] | |
file=/var/run/supervisor.sock ; (the path to the socket file) | |
chmod=0700 ; sockef file mode (default 0700) | |
[supervisord] | |
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | |
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP) | |
; the below section must remain in the config file for RPC | |
; (supervisorctl/web interface) to work, additional interfaces may be |
This file contains hidden or 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
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples. |
This file contains hidden or 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 SWP\Node; | |
/** | |
* Gimme twig node. | |
*/ | |
class GimmeNode extends \Twig_Node | |
{ | |
private static $count = 1; |
This file contains hidden or 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 SWP\Parser; | |
use SWP\Node\GimmeNode; | |
/** | |
* Parser for gimme/endgimme blocks. | |
*/ | |
class GimmeTokenParser extends \Twig_TokenParser |
This file contains hidden or 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 SWP\Extension; | |
use SWP\Parser\GimmeTokenParser; | |
class GimmeExtension extends \Twig_Extension | |
{ | |
/** | |
* Simple data loader implementation. |
This file contains hidden or 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
services: | |
swp.twig.cache.tenant_aware: | |
class: SWP\Bundle\CoreBundle\Twig\Cache\TenantAwareCache | |
arguments: | |
- '%kernel.cache_dir%/twig' | |
- '@swp_multi_tenancy.tenant_context' #this is our tenant context service |
This file contains hidden or 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 SWP\Bundle\CoreBundle\DependencyInjection\Compiler; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Reference; | |
final class AddCustomTwigCachePass extends AbstractOverridePass | |
{ | |
public function process(ContainerBuilder $container) |
This file contains hidden or 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 SWP\Bundle\CoreBundle\Twig\Cache; | |
use SWP\Bundle\MultiTenancyBundle\Context\TenantContext; | |
class TenantAwareCache extends \Twig_Cache_Filesystem | |
{ | |
private $directory; | |
private $tenantContext; |
NewerOlder