I hereby claim:
- I am Spabby on github.
- I am GeeH (https://keybase.io/GeeH) on keybase.
- I have a public key whose fingerprint is F376 F611 64B5 4950 F6C6 EF27 B811 9D4E 8B57 BF03
To claim this, I am signing this object:
<?php | |
/** | |
* Global Configuration Override | |
* | |
* You can use this file for overriding configuration values from modules, etc. | |
* You would place values in here that are agnostic to the environment and not | |
* sensitive to security. | |
* | |
* @NOTE: In practice, this file will typically be INCLUDED in your source | |
* control, so do not include passwords or other sensitive information in this |
I hereby claim:
To claim this, I am signing this object:
... | |
public function getServiceConfig() | |
{ | |
return array( | |
'abstract_factories' => array( | |
'Application\\Factory\\ServiceFactory', | |
), | |
); | |
} | |
... |
<?php | |
/** | |
* Gary Hockin | |
* 23/04/2013 | |
*/ | |
namespace FAFSServer\Service; | |
class FAFSServer | |
{ |
DELETE FROM | |
blah | |
WHERE | |
id NOT IN ( | |
SELECT | |
c.id | |
FROM | |
blah c | |
LEFT JOIN | |
blah d |
public function create($data = null) { | |
$json = "{ \"artist\":\"ergsern\", \"title\":\"enruy7u\" }"; | |
$array = \Zend\Json\Decoder::decode($json); | |
$artist = new Input('artist'); | |
$artist->getValidatorChain()->addValidator(new Validator\StringLength(array('min' => '5', 'max' => '20'))); | |
$title = new Input('title'); | |
$title->getValidatorChain()->addValidator(new Validator\StringLength(array('min' => '5', 'max' => '20'))); | |
$inputFilter = new InputFilter(); |
return array( | |
'environment' => function() { | |
$environment = (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'); | |
return $environment; | |
}, | |
); |