Skip to content

Instantly share code, notes, and snippets.

View adamlundrigan's full-sized avatar

Adam Lundrigan adamlundrigan

View GitHub Profile
@adamlundrigan
adamlundrigan / keybase.md
Created August 24, 2021 17:27
keybase.md

Keybase proof

I hereby claim:

  • I am adamlundrigan on github.
  • I am adamlundrigan (https://keybase.io/adamlundrigan) on keybase.
  • I have a public key whose fingerprint is 3946 706A E340 86DE 3762 C0E4 7405 2C76 50AB 71F3

To claim this, I am signing this object:

<?php
<<<CONFIG
packages:
- "zendframework/zendframework:~2.3"
CONFIG;
class Weather {
private $time;
private $rain;
@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 / CryptoTokenServerFactory.php
Last active September 21, 2016 17:59
Satellizer + Apigility (only direct login, no social integration)
<?php
namespace SatellizerServer\Factory;
use Zend\ServiceManager\DelegatorFactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class CryptoTokenServerFactory implements DelegatorFactoryInterface
{
public function createDelegatorWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName, $callback)
{
@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 
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Db
*/
@adamlundrigan
adamlundrigan / ZfcUser Open Issue Review.md
Created July 24, 2012 16:07
ZfcUser Open Issue Review
  • #5 is resolved by my PR#101
  • #94 duplicates the resolved issue #97
  • #99 is not an issue (someone trying to use ZfcUser latest head with ZF2b5)
  • #100 is duplicate of #99
@adamlundrigan
adamlundrigan / sqlite_count.output
Created May 11, 2012 13:36
Zend\Db\Adapter\Driver\Pdo\Result not returning row count?
$ php sqlite_count.php
Row Count: 0
Row 0: request_key=DCE2D890895CF02, email_address=foo@bar.com, request_time=2001-01-01 01:01:01,