for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nono;
/**
* Simple di container without the fancy.
*/
class Container extends \ArrayObject
{
* @param string $key
* @param mixed|null $default
* @return mixed
public function get($key, $default = null)
return isset($this[$key]) ? $this[$key] : $default;
}
* @return bool
public function has($key)
return isset($this[$key]);