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
server { | |
server_name .sfdev; | |
index index.php; | |
autoindex on; | |
client_max_body_size 256M; | |
charset utf-8; | |
set $root ""; |
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
server { | |
server_name .webdev; | |
index index.html index.php; | |
autoindex on; | |
set $root ""; | |
if ($host ~* ^(www\.)?(.+)\.webdev) { | |
set $root $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
public function getSubscribedEvents() | |
{ | |
return array(Events::postPersist); | |
} | |
public function postPersist(LifecycleEventArgs $args) | |
{ | |
$em = $args->getEntityManager(); | |
$uow = $em->getUnitOfWork(); |
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 UKWM\Bundle\DictionaryBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\MappedSuperclass | |
*/ | |
class Definition |
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 UKWM\Bundle\DictionaryBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="dictionary_colours", indexes={ | |
* @ORM\Index(name="text_idx", columns={"text"}) |
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 \Acme\Bundle\ExampleBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="product_variants", indexes={ | |
* @ORM\index(name="variant_name_idx", columns={"name"}) |
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
{% for competition in competitions %} | |
<tr> | |
<td>{{ competition.title }}</td> | |
<td>{{ competition.searchPhrase }}</td> | |
<td>{{ competition.openAt|date }}</td> | |
<td>{{ competition.closeAt|date }}</td> | |
<td>{{ competition.total }}</td> | |
</tr> | |
{% endfor %} |
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
protected function parseResponse($raw) | |
{ | |
$raw = trim($raw); | |
$response = null; | |
switch (substr($raw, 0, 1)) { | |
case '-': | |
throw new ResponseException(substr($raw, 4)); | |
break; | |
case '+': |
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 Versionable\Ration\Stream; | |
/** | |
* Dummy stream wrapper for unit tests | |
* | |
* @author Harry Walter <harry.walter@lqdinternet.com> | |
*/ | |
class TestWrapper |
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
[user] | |
name = Harry Walter | |
email = *********** | |
[branch "master"] | |
remote = origin | |
merge = refs/heads/master | |
[color] | |
diff = auto |
OlderNewer