@@ -174,6 +174,8 @@ Some environments, e.g., Docker, CloudFormation, do not permit variable name wit
174174 app_forceGlobalSecureRequests = true
175175 app_CSPEnabled = true
176176
177+ .. _configuration-classes-and-environment-variables :
178+
177179Configuration Classes and Environment Variables
178180***********************************************
179181
@@ -351,3 +353,47 @@ the three properties declared, but the value of the ``$target`` property will be
351353by treating ``RegionalSales `` as a "registrar". The resulting configuration properties:
352354
353355.. literalinclude :: configuration/011.php
356+
357+ Confirming Config Values
358+ ************************
359+
360+ The actual Config object property values are changed at runtime by the :ref: `registrars `
361+ and :ref: `Environment Variables <configuration-classes-and-environment-variables >`.
362+
363+ CodeIgniter has the following :doc: `command <../cli/spark_commands >` to check
364+ Config values.
365+
366+ .. _spark-config-check :
367+
368+ config:check
369+ ============
370+
371+ .. versionadded :: 4.5.0
372+
373+ For example, if you want to check the ``Config\App `` instance:
374+
375+ .. code-block :: console
376+
377+ php spark config:check App
378+
379+ The output is like the following:
380+
381+ .. code-block :: none
382+
383+ Config\App#6 (12) (
384+ public 'baseURL' -> string (22) "http://localhost:8080/"
385+ public 'allowedHostnames' -> array (0) []
386+ public 'indexPage' -> string (9) "index.php"
387+ public 'uriProtocol' -> string (11) "REQUEST_URI"
388+ public 'defaultLocale' -> string (2) "en"
389+ public 'negotiateLocale' -> boolean false
390+ public 'supportedLocales' -> array (1) [
391+ 0 => string (2) "en"
392+ ]
393+ public 'appTimezone' -> string (3) "UTC"
394+ public 'charset' -> string (5) "UTF-8"
395+ public 'forceGlobalSecureRequests' -> boolean false
396+ public 'proxyIPs' -> array (0) []
397+ public 'CSPEnabled' -> boolean false
398+ )
399+
0 commit comments