Skip to content

Instantly share code, notes, and snippets.

View adamlundrigan's full-sized avatar

Adam Lundrigan adamlundrigan

View GitHub Profile
@adamlundrigan
adamlundrigan / Db.php
Last active August 29, 2015 14:07
Expunge session usage from ZfcUser
<?php
namespace LdcZfcUserApigility\Authentication\Adapter;
use ZfcUser\Authentication\Adapter\Db as BaseAdapter;
use Zend\Authentication\Result as AuthenticationResult;
use Zend\Crypt\Password\Bcrypt;
use ZfcUser\Authentication\Adapter\AdapterChainEvent as AuthEvent;
class Db extends BaseAdapter
{
@adamlundrigan
adamlundrigan / .gitignore
Last active August 29, 2015 14:05
PoC of Zend\ServiceManager bug
*
!.gitignore
!run.php
!composer.json
!result.txt
@adamlundrigan
adamlundrigan / _instructions.md
Last active August 29, 2015 14:03
Multiple-EM-aware DoctrineModule CLI

Installation

  • Place the doctrine script below in your application's bin directory
  • Make it executable (or prepend php to the command below)

Usage

EM_ALIAS="my-custom-em" bin/doctrine