common/env.php
<?php
/*
* This file is part of the HomeFinanceV2 project.
*
* (c) Rafalsky.com <http://github.com/Rafalsky/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Require helpers
*/
require_once(__DIR__.'/helpers.php');
/**
* Load application environment from .env file
*/
$dotenv = new \Dotenv\Dotenv(dirname(__DIR__));
$dotenv->load();
/**
* Init application constants
*/
defined('YII_DEBUG') or define('YII_DEBUG', env('YII_DEBUG'));
defined('YII_ENV') or define('YII_ENV', env('YII_ENV', 'prod'));