Skip to content

Commit

Permalink
Merge pull request #62 from msmakouz/maintenance/update-config
Browse files Browse the repository at this point in the history
Adding Monolog and Cycle bridge env variables
  • Loading branch information
butschster authored Jun 16, 2022
2 parents 2d632b6 + f5f69be commit 9c1e8e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SAFE_MIGRATIONS=true
QUEUE_CONNECTION=sync

# Monolog
MONOLOG_DEFAULT_CHANNEL=default
MONOLOG_DEFAULT_LEVEL=DEBUG # DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY

# Cache
Expand All @@ -30,3 +31,7 @@ MAILER_FROM="Spiral <[email protected]>"

# Storage
STORAGE_DEFAULT=default

# Cycle Bridge
CYCLE_SCHEMA_CACHE=true
CYCLE_SCHEMA_WARMUP=false
4 changes: 3 additions & 1 deletion app/config/cycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* false - Schema won't be stored in a cache after compilation.
* It will be automatically changed after entity modification. (Development mode)
*/
'cache' => false,
'cache' => env('CYCLE_SCHEMA_CACHE', true),

/**
* The CycleORM provides the ability to manage default settings for
Expand Down Expand Up @@ -58,6 +58,8 @@
// ],
],

'warmup' => env('CYCLE_SCHEMA_WARMUP', false),

/**
* Custom relation types for entities
*/
Expand Down
4 changes: 4 additions & 0 deletions app/config/monolog.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
use Monolog\Processor\PsrLogMessageProcessor;

return [
/**
* Specify a default monolog handler
*/
'default' => env('MONOLOG_DEFAULT_CHANNEL', 'default'),

/**
* Monolog supports the logging levels described by RFC 5424.
Expand Down

0 comments on commit 9c1e8e9

Please sign in to comment.