Skip to content

Instantly share code, notes, and snippets.

View muteor's full-sized avatar

Keith Pope muteor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am muteor on github.
  • I am muteor (https://keybase.io/muteor) on keybase.
  • I have a public key whose fingerprint is 7A22 C73E 8B08 AB1B 425B F8A6 3441 A790 05E1 6F59

To claim this, I am signing this object:

{
"require": {
"adoy/oauth2": "dev-master"
}
}
@muteor
muteor / AbstractCommand.php
Created November 8, 2011 16:30
Storefront Refactor
<?php
namespace Storefront\Domain\Command;
abstract class AbstractCommand implements Command
{
public function __get($name)
{
$property = $name;
if (property_exists($this, $property)) {
@muteor
muteor / installing doctrine
Created September 27, 2011 18:33
ZF1 Doctrine2
pear channel-discover pear.doctrine-project.org
pear install --alldeps doctrine/DoctrineORM
----------------------------------------------------------------------
Tweets from ReadModel
----------------------------------------------------------------------
Another really important tweet(Keith Pope) - 1283456671
----------------------------------------------------------------------
Event Store
----------------------------------------------------------------------
EventStore Object
(
[_events:protected] => Array
<?php
error_reporting(E_ALL | E_STRICT);
/**
* To runs this example you will need the UUID PHP Extension http://pecl.php.net/package/uuid
*/
/**
* DomainModel Aggregate root for a Tweet
*
* The Aggregate root tracks all uncommitted events and can have old
* events replayed to it.