Skip to content

Instantly share code, notes, and snippets.

@weierophinney
Created January 6, 2012 22:16
Show Gist options
  • Save weierophinney/1572671 to your computer and use it in GitHub Desktop.
Save weierophinney/1572671 to your computer and use it in GitHub Desktop.
<?php
$events->attach(
'EdpUser\Authentication\Adapter\AdapterChain',
'authenticate',
function($e) use ($request, $config) {
$chain = $e->getTarget();
$adapter = new My\Custom\Adapter($config['auth']);
$adapter->setCredentialsFromRequest($request);
$chain->register($adapter);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment