for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flatdown;
class Application extends \Philae\Application
{
public function __construct(array $config = [])
parent::__construct();
$this->share('config', new Config($config));
}
/**
* @param string|null $key
* @param mixed|null $default
*
* @return Config|mixed
*/
public function getConfig($key = null, $default = null)
return (func_num_args() == 0) ? $this->get('config') : $this->get('config')->get($key, $default);