public function __construct($app_root, $env) { $this->app_root = $app_root; $this->app_namespace = $this->detectAppNamespace(); $this->env = $env; $this->dirs = $this->getDefaultDirs(); }
public function __construct() { $base = dirname(__DIR__); $dotenv = new \Dotenv\Dotenv($base); $dotenv->load(); parent::__construct($base, $_ENV['DIET_ENV'] ?? 'development'); }