for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* WebHemi.
*
* PHP version 5.6
* @copyright 2012 - 2016 Gixx-web (http://www.gixx-web.com)
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
* @link http://www.gixx-web.com
*/
namespace WebHemi\Application;
use WebHemi\Adapter\DependencyInjection\DependencyInjectionAdapterInterface;
* Class AbstractApplication.
abstract class AbstractApplication implements ApplicationInterface
{
/** @var DependencyInjectionAdapterInterface */
private $container;
* ApplicationInterface constructor.
* @param DependencyInjectionAdapterInterface $container
public function __construct(DependencyInjectionAdapterInterface $container)
$this->container = $container;
}
* Returns the DI Adapter instance.
* @return DependencyInjectionAdapterInterface
final public function getContainer()
return $this->container;
* Runs the application. This is where the magic happens.
* For example for a web application this initializes the Request and Response objects, builds the middleware
* pipeline, applies the Routing and the Dispatch.
* @return void
abstract public function run();