Skip to content

Instantly share code, notes, and snippets.

View davedevelopment's full-sized avatar
😬
I may be slow to respond.

Dave Marshall davedevelopment

😬
I may be slow to respond.
View GitHub Profile
<?php
error_reporting(E_ALL|E_STRICT);
namespace Some\Vendor;
class Foo
{
public function zim($doom = null)
{
}
dave:~/sites/bin $ ./phpmig status
PHP Fatal error: Call to a member function schema() on boolean in /Users/davidheward/sites/vendor/davedevelopment/phpmig/src/Phpmig/Adapter/Illuminate/Database.php on line 89
Fatal error: Call to a member function schema() on boolean in /Users/davidheward/sites/vendor/davedevelopment/phpmig/src/Phpmig/Adapter/Illuminate/Database.php on line 89

Keybase proof

I hereby claim:

  • I am davedevelopment on github.
  • I am davedevelopment (https://keybase.io/davedevelopment) on keybase.
  • I have a public key whose fingerprint is E2C7 2CE4 DD9C 6B9F 9060 0ADE 06EA F75E D204 3065

To claim this, I am signing this object:

input {
syslog {
type => syslog
port => 514
}
}
output {
stdout {
codec => rubydebug
$app->register(
new Silex\Provider\SwiftmailerServiceProvider(),
array(
'swiftmailer.options' => array(
'sender_address' => $sender,
'transport' => 'smtp',
'encryption' => null,
'auth_mode' => 'login',
'host' => $server,
'port' => $port',
<?php
require "vendor/autoload.php";
$mock = Mockery::mock("Dave")->shouldReceive("doThis")->once();
Mockery::close();
@davedevelopment
davedevelopment / DoctrineManagerRegistry.php
Created June 3, 2013 21:34
My doctrine manager registry
<?php
namespace Childcare\Common;
use Doctrine\Common\Persistence\AbstractManagerRegistry;
use Doctrine\ORM\ORMException;
use Pimple;
class DoctrineManagerRegistry extends AbstractManagerRegistry
{
$app['repository.factory'] = $app->protect(function($class) use ($app) {
return $app->share(function ($app) use ($class) {
return new $class($app['db']);
});
});
$app['users'] = $app['repository.factory']("User");
$app['groups'] = $app['repository.factory']("Groups");
@davedevelopment
davedevelopment / test.php
Created May 1, 2013 20:51
Listener removing itself
<?php
require "vendor/autoload.php";
use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\Event;
$dispatcher = new EventDispatcher;
$eventName = 'dave';
@davedevelopment
davedevelopment / RESULTS
Last active December 15, 2015 22:49 — forked from igorw/RESULTS
Pimple
273K
2153K
0.009068s
DependencyInjection
275K
2903K
0.051517s
DependencyInjection (dumped)
2041K