I don’t think the slides are very useful on their own but you can find them here: http://rosstuck.com/dpc2016/#/.
(I was unable to create a decent PDF export, hence the self hosting).
The talk was recorded but I don’t know when it will be released.
| <?php | |
| /** | |
| * This is the clock interface. It's really simple, you write it once, use it anywhere. | |
| * Cool extra things you can do: | |
| * - have it return custom value objects | |
| * - separate method for currentDate() without time part | |
| */ | |
| interface Clock | |
| { |
I don’t think the slides are very useful on their own but you can find them here: http://rosstuck.com/dpc2016/#/.
(I was unable to create a decent PDF export, hence the self hosting).
The talk was recorded but I don’t know when it will be released.
| <?php | |
| namespace Derp; | |
| abstract class Enum | |
| { | |
| protected $value; | |
| protected static $possibleValues; | |
| protected static function getPossibleValues() |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| use \Symfony\Component\Form\FormInterface; | |
| use \Symfony\Component\HttpFoundation\Request; | |
| class FormSet | |
| { | |
| /** | |
| * @var SplObjectStorage|FormInterface[] | |
| */ |
| <?php | |
| trait EventGenerator | |
| { | |
| protected $pendingEvents = array(); | |
| protected function raise($event) | |
| { | |
| $this->pendingEvents[] = $event; | |
| } |
| Hello PFC! |
| use Metadata\MetadataFactory; | |
| use JMS\SerializerBundle\Serializer\Handler\DeserializationHandlerInterface; | |
| use JMS\SerializerBundle\Serializer\Handler\SerializationHandlerInterface; | |
| use JMS\SerializerBundle\Serializer\VisitorInterface; | |
| use JMS\SerializerBundle\Serializer\XmlDeserializationVisitor; | |
| use JMS\SerializerBundle\Serializer\Construction\UnserializeObjectConstructor; | |
| use JMS\SerializerBundle\Serializer\JsonDeserializationVisitor; | |
| use JMS\SerializerBundle\Serializer\Handler\ObjectBasedCustomHandler; | |
| use JMS\SerializerBundle\Serializer\Handler\DateTimeHandler; | |
| use JMS\SerializerBundle\Serializer\Handler\DoctrineProxyHandler; |
| var redis = require("redis"); | |
| var client = redis.createClient(); | |
| client.on("message", function (channel, message) { | |
| console.log(channel + ": " + message); | |
| }); | |
| client.subscribe("broadcast"); |