I hereby claim:
- I am weierophinney on github.
- I am mwop (https://keybase.io/mwop) on keybase.
- I have a public key whose fingerprint is 8D98 47CD E15F 050B 8197 6BA7 B545 7969 23ED 29DA
To claim this, I am signing this object:
<?php | |
namespace MyLib; | |
use ZF\OAuth2\Adapter\PdoAdapter; | |
class OAuth2PdoAdapter extends PdoAdapter | |
{ | |
protected $mapper; | |
public function setUsersMapper(Users\MapperInterface $mapper) |
<?php | |
public function someAction() | |
{ | |
$data = doSomeWorkFetchSomeData(); | |
$entity = new \ZF\Hal\Entity($data, $data['id']); // or similar | |
return new \ZF\ContentNegotiation\ViewModel([ | |
'payload' => $entity, | |
]); | |
} |
<?php | |
use ZF\OAuth2\Adapter\PdoAdapter; | |
class OAuth2PdoAdapterFactory | |
{ | |
public function __invoke($services) | |
{ | |
$db = $services->get('DB\MyDbName'); | |
if (! $db instanceof Adapter) { |
<?php | |
use Zend\Db\TableGateway\Feature; | |
use Zend\ServiceManager\DelegatorFactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
class TableGatewayFeaturesDelegatorFactory implements DelegatorFactoryInterface | |
{ | |
public function createDelegatorWithName( | |
ServiceLocatorInterface $services, |
<?php | |
namespace SomeApi; | |
use ZF\ApiProblem\ApiProblem; | |
use ZF\ApiProblem\ApiProblemResponse; | |
class Module | |
{ | |
public function onBootstrap($e) | |
{ |
{ | |
"name": "zendframework/skeleton-application", | |
"description": "Skeleton Application for ZF2", | |
"license": "BSD-3-Clause", | |
"keywords": [ | |
"framework", | |
"zf2" | |
], | |
"homepage": "http://framework.zend.com/", | |
"require": { |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class Module | |
{ | |
public function onBootstrap($e) | |
{ | |
$app = $e->getApplication(); | |
$events = $app->getEventManager(); | |
// Direct instantiation | |
$events->attach(new RouteNotFoundListener()); |
<?php | |
namespace Soap\Controller; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Zend\Soap\AutoDiscover as SoapWsdlGenerator; | |
use Zend\Soap\Server as SoapServer; | |
class SoapController | |
{ |
#!/bin/zsh | |
# | |
# Copyright (c) 2014, Joshua Thijssen | |
# Copyright (c) 2014, Matthew Weier O'Phinney | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. |