for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Protoku\Kernel;
use Dotenv\Dotenv;
use League\BooBoo\Formatter\JsonFormatter;
use League\BooBoo\Runner;
use League\Container\Container;
use League\Container\ContainerAwareTrait;
use League\Container\ReflectionContainer;
abstract class AbstractKernel
{
use ContainerAwareTrait;
/**
* AbstractKernel constructor.
*/
public function __construct()
$this->createErrorHandler();
$this->createContainer();
$this->loadEnvironment();
}
private function createErrorHandler()
$runner = new Runner();
$runner->pushFormatter(new JsonFormatter);
$runner->register();asd
private function createContainer()
$container = new Container;
$container->delegate(new ReflectionContainer);
$this->setContainer($container);
private function loadEnvironment()
$environment = new Dotenv(getcwd() . '/../');
$environment->load();