Skip to content

Commit e6fdfdf

Browse files
authored
Merge pull request #5381 from kenjis/fix-docs-configuration.rst
docs: small fixes on configuration.rst
2 parents ec23934 + e452d51 commit e6fdfdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

user_guide_src/source/general/configuration.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ You can access configuration files for your classes in several different ways.
3131
$config = config('Pager');
3232

3333
// Access config class with namespace
34-
$config = config( 'Config\\Pager' );
34+
$config = config('Config\\Pager');
35+
$config = config(\Config\Pager::class);
3536

3637
// Creating a new object with config function
3738
$config = config('Pager', false);
@@ -115,14 +116,13 @@ overwritten. The loaded Environment variables are accessed using any of the foll
115116
$s3_bucket = $_ENV['S3_BUCKET'];
116117
$s3_bucket = $_SERVER['S3_BUCKET'];
117118

118-
.. important:: Note that your settings from the **.env** file are added to Environment Variables. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons) **your secure credentials are publicly exposed**.
119+
.. warning:: Note that your settings from the **.env** file are added to Environment Variables. As a side effect, this means that if your CodeIgniter application is (for example) generating a ``var_dump($_ENV)`` or ``phpinfo()`` (for debugging or other valid reasons) **your secure credentials are publicly exposed**.
119120

120121
Nesting Variables
121122
=================
122123

123124
To save on typing, you can reuse variables that you've already specified in the file by wrapping the
124-
variable name within ``${...}``
125-
::
125+
variable name within ``${...}``::
126126

127127
BASE_DIR="/var/webroot/project-root"
128128
CACHE_DIR="${BASE_DIR}/cache"

0 commit comments

Comments
 (0)