Skip to content

Commit

Permalink
Fix App namespace (#33)
Browse files Browse the repository at this point in the history
* Add APP_NAMESPACE kernel variable

* Add APP_NAMESPACE kernel variable

* Fix app name variable
  • Loading branch information
marforon authored Aug 10, 2023
1 parent 0fbfe65 commit 10338f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ APP_ENV=test
APP_DEBUG=1
APP_SECRET=2b55525550c099650993e0c9b021346ddf040d38

APP_SYSTEM=test
APP_NAME=test
APP_VERSION=0.0.0
APP_READ_ONLY_MODE=0
APP_CACHE_PROXY_ENABLED=1
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Traits/AnzuKernelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected static function createKernel(array $options = []): AnzuKernel

return new $kernelClass(
appNamespace: (string) self::resolveKernelOption($options, 'namespace', 'APP_NAMESPACE', ''),
appSystem: (string) self::resolveKernelOption($options, 'system', 'APP_SYSTEM', ''),
appSystem: (string) self::resolveKernelOption($options, 'name', 'APP_NAME', ''),
appVersion: (string) self::resolveKernelOption($options, 'version', 'APP_VERSION', '0.0.0'),
appReadOnlyMode: (bool) self::resolveKernelOption($options, 'debug', 'APP_READ_ONLY_MODE', false),
environment: (string) self::resolveKernelOption($options, 'environment', 'APP_ENV', 'test'),
Expand Down

0 comments on commit 10338f9

Please sign in to comment.