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 Infinite\Helper\Twig; | |
use Doctrine\Common\Util\Debug as DoctrineDebug; | |
class Debug extends \Twig_Extension | |
{ | |
/** | |
* Returns a list of global functions to add to the existing list. |
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
$ gem install watchr | |
$ cd /path/to/symfony-project | |
$ wget https://raw.github.com/gist/1151531/f12b125fed843086c05377d4f76185797121cbc6/phpunit.watchr | |
$ watchr phpunit.watchr |
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
->arrayNode('identifiers') | |
->useAttributeAsKey('key') | |
->prototype('scalar') | |
->end() | |
->end() |
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
#!/bin/sh | |
# | |
# Step 1. Install proctools to use "pgrep" command. | |
# | |
# Step 2. Configure your .ssh/config to include: | |
# | |
# Host proxy-host | |
# HostName proxy-host.example.com | |
# User a12345 | |
# DynamicForward localhost:1080 |
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
$steps->Given('/^I am logged into the admin area as rich_81$/', function($world) { | |
$session = $world->getSession(); | |
$doc = $session->getPage(); | |
// Ensure we're logged out for cases where the session isn't | |
// reset between Behat steps | |
$session->visit($world->locatePath("/admin/logout")); | |
$session->visit($world->locatePath("/admin")); |
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 | |
use Doctrine\ORM\EntityManager, | |
Doctrine\ORM\Configuration, | |
Doctrine\ORM\Mapping\ClassMetadata; | |
/** | |
* Active Entity trait | |
* | |
* Limitations: a class can only ever be assocaited with ONE active entity manager. Multiple entity managers |
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
server { | |
listen 80; | |
server_name <your.site.com>; | |
root /var/www/vhosts/<your.site.com>/site/www/; | |
#site root is redirected to the app boot script | |
location = / { | |
try_files @site @site; | |
} |
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
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires max; | |
log_not_found off; | |
} |
NewerOlder