for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
class Application extends \Philae\Application
{
const SERVICE_CONFIG = 'config';
const SERVICE_ENVIRONMENT = 'environment';
public function getEnvironment()
return $this->get(self::SERVICE_ENVIRONMENT);
}
/**
* @param string|null $key
* @param mixed|null $default
*
* @return mixed
*/
public function getConfig($key = null, $default = null)
$config = $this->get(self::SERVICE_CONFIG);
return (func_num_args() == 0) ? $config : (isset($config[$key]) ? $config[$key] : $default);