I hereby claim:
- I am madapaja on github.
- I am madapaja (https://keybase.io/madapaja) on keybase.
- I have a public key whose fingerprint is 940C 5947 04CF DAB9 112C E255 00DD 5E40 6D30 BD61
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
root = true | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
trim_trailing_whitespace = true |
<?php | |
class DbInterface {} | |
class DefaultDb extends DbInterface {} | |
class Storage { | |
public $db; | |
/** |
<?php | |
use Ray\Di\Injector; | |
require __DIR__.'/vendor/autoload.php'; | |
$di = Injector::create([]); | |
$di->getContainer()->params['MailerInterface'] = array( | |
'transport' => 'sendmail', |
<?php | |
abstract class MailerInterface { | |
private $transport; | |
/** | |
* @Inject | |
* @Named("transport_type") | |
*/ | |
public function __construct($transport) |
<?php | |
use Doctrine\Common\Annotations\AnnotationRegistry; | |
use Ray\Di\Di\Inject; | |
use Ray\Di\Di\Named; | |
use Ray\Di\AbstractModule; | |
use Ray\Di\Injector; | |
$loader = require __DIR__.'/vendor/autoload.php'; | |
AnnotationRegistry::registerLoader(array($loader, "loadClass")); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Load jQuery --> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<!-- Load jQuery.selection plugin--> | |
<script src="jquery.selection.js"></script> |
<?php | |
namespace Madapaja; | |
class UUID4 | |
{ | |
protected $isUpperCase; | |
public function __construct($isUpperCase = false) | |
{ |
<?php | |
namespace Madapaja\ODM\MongoDB\Tests; | |
use Doctrine\ODM\MongoDB\Configuration; | |
/** | |
* Base testcase class for MongoDB ODM testcases. | |
* | |
* Usage: |