Skip to content

Commit a72c303

Browse files
authored
Merge pull request #1043 from mirko-pagliai/5.x-env
Import `env` utility across configuration files for consistency.
2 parents c2b617d + 3a6fe30 commit a72c303

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Cake\Database\Driver\Mysql;
66
use Cake\Log\Engine\FileLog;
77
use Cake\Mailer\Transport\MailTransport;
8+
use function Cake\Core\env;
89

910
return [
1011
/*

config/app_local.example.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
use function Cake\Core\env;
4+
25
/*
36
* Local configuration file to provide any overrides to your app.php configuration.
47
* Copy and save this file as app_local.php and make changes as required.

config/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
use Cake\Mailer\TransportFactory;
4545
use Cake\Routing\Router;
4646
use Cake\Utility\Security;
47+
use function Cake\Core\env;
4748

4849
/*
4950
* Load global functions for collections, translations, debugging etc.

0 commit comments

Comments
 (0)