for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Alnutile\Codereview;
/**
* @codeCoverageIgnore
*/
class Application
{
use CreateApp;
* @var \Silly\Edition\Pimple\Application
protected $app;
* Application constructor.
* @param \Silly\Edition\Pimple\Application|null $app
public function __construct($app = null)
$this->app = $app;
}
public function getConfigValueByKey($key)
if (isset($this->getConfig()[$key])) {
return $this->getConfig()[$key];
return null;
* @return \Silly\Edition\Pimple\Application
public function getApp()
if (!$this->app) {
$this->setApp();
return $this->app;
* @return $this
public function setApp($app = null)
if (!$app) {
$app = $this->createApplication();
return $this;
* @return mixed
public function getConfig()
return $this->getApp()->getContainer()['config'];