Skip to content

Instantly share code, notes, and snippets.

View Burgov's full-sized avatar

Bart van den Burg Burgov

View GitHub Profile
@Burgov
Burgov / gist:2502064
Created April 26, 2012 19:09
file_get_contents headers
array(45) {
[0]=>
string(18) "HTTP/1.1 302 Found"
[1]=>
string(35) "Date: Thu, 26 Apr 2012 19:08:58 GMT"
[2]=>
string(30) "Server: Apache/2.2.20 (Ubuntu)"
[3]=>
string(35) "X-Powered-By: PHP/5.3.6-13ubuntu3.6"
[4]=>
@Burgov
Burgov / LabourWeekTransformer.php
Created April 19, 2012 08:09
Data transformer for week data
<?php
namespace Samson\TRSBundle\Form\DataTransformer;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
class LabourWeekTransformer implements DataTransformerInterface
{
private $week;