generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initital commit. * Fix permissions. * Fix error typo. * Fix config workflows. * Add example create console command. * Add using command console `README.md`. * Fix minor correction. * Change phpunit for codeception in `README.md`. * Remove build serve command. * Fix scrutinizer.yml.
- Loading branch information
1 parent
f488b78
commit 15953ca
Showing
34 changed files
with
537 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
YII_ENV= | ||
YII_DEBUG=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Dotenv\Dotenv; | ||
|
||
require_once __DIR__ . '/vendor/autoload.php'; | ||
|
||
$dotenv = Dotenv::createImmutable(__DIR__); | ||
$dotenv->load(); | ||
|
||
$_ENV['YII_ENV'] = empty($_ENV['YII_ENV']) ? null : (string)$_ENV['YII_ENV']; | ||
$_SERVER['YII_ENV'] = $_ENV['YII_ENV']; | ||
|
||
$_ENV['YII_DEBUG'] = filter_var( | ||
!empty($_ENV['YII_DEBUG']) ? $_ENV['YII_DEBUG'] : true, | ||
FILTER_VALIDATE_BOOLEAN, | ||
FILTER_NULL_ON_FAILURE | ||
) ?? true; | ||
$_SERVER['YII_DEBUG'] = $_ENV['YII_DEBUG']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace: App\Console\Tests | ||
support_namespace: Support | ||
paths: | ||
tests: tests | ||
output: tests/_output | ||
data: tests/Support/Data | ||
support: tests/Support | ||
envs: tests/_envs | ||
actor_suffix: Tester | ||
extensions: | ||
enabled: | ||
- Codeception\Extension\RunFailed | ||
coverage: | ||
enabled: true | ||
whitelist: | ||
include: | ||
- src/* |
Oops, something went wrong.