Source for file Environment.php
Documentation is available at Environment.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see https://nette.org
- 12: *
- 19: */
- 23: /**
- 24: * Nette environment and configuration.
- 25: *
- 29: */
- 31: {
- 32: /**#@+ environment name */
- 37: /**#@-*/
- 39: /**#@+ mode name */
- 42: /**#@-*/
- 71: /**
- 72: * Static class - cannot be instantiated.
- 73: */
- 75: {
- 77: }
- 81: /**
- 82: * Sets "class behind Environment" configurator.
- 85: */
- 87: {
- 89: }
- 93: /**
- 94: * Gets "class behind Environment" configurator.
- 96: */
- 98: {
- 101: }
- 103: }
- 107: /********************* environment name and modes ****************d*g**/
- 111: /**
- 112: * Sets the current environment name.
- 116: */
- 118: {
- 124: }
- 125: }
- 129: /**
- 130: * Returns the current environment name.
- 132: */
- 134: {
- 139: }
- 141: }
- 145: /**
- 146: * Sets the mode.
- 147: *
- 151: */
- 153: {
- 156: }
- 160: /**
- 161: * Returns the mode.
- 162: *
- 165: */
- 167: {
- 174: }
- 175: }
- 179: /**
- 180: * Detects console (non-HTTP) mode.
- 182: */
- 184: {
- 186: }
- 190: /**
- 191: * Determines whether a server is running in production mode.
- 193: */
- 195: {
- 197: }
- 201: /**
- 203: */
- 205: {
- 206: trigger_error('Environment::isLive() is deprecated; use Environment::isProduction() instead.', E_USER_WARNING);
- 208: }
- 212: /**
- 213: * Determines whether the debugger is active.
- 215: */
- 217: {
- 219: }
- 223: /********************* environment variables ****************d*g**/
- 227: /**
- 228: * Sets the environment variable.
- 233: */
- 235: {
- 238: }
- 240: }
- 244: /**
- 245: * Returns the value of an environment variable or $default if there is no element set.
- 250: */
- 252: {
- 258: }
- 262: // convert from camelCaps (or PascalCaps) to ALL_CAPS
- 271: }
- 272: }
- 273: }
- 277: /**
- 278: * Define one or more variables as constants.
- 281: */
- 283: {
- 286: }
- 291: }
- 292: }
- 296: /**
- 297: * Returns expanded variable.
- 301: */
- 303: {
- 305: return @preg_replace_callback('#%([a-z0-9_-]*)%#i', array(__CLASS__, 'expandCb'), $var); // intentionally @ due PHP bug #39257
- 306: }
- 308: }
- 312: /**
- 316: */
- 318: {
- 326: }
- 335: }
- 342: }
- 345: }
- 349: /********************* service locator ****************d*g**/
- 353: /**
- 354: * Get initial instance of service locator.
- 356: */
- 358: {
- 361: }
- 363: }
- 367: /**
- 368: * Gets the service object of the specified type.
- 372: */
- 374: {
- 376: }
- 380: /**
- 382: */
- 384: {
- 386: }
- 390: /**
- 392: */
- 394: {
- 396: }
- 400: /**
- 402: */
- 404: {
- 406: }
- 410: /**
- 412: */
- 414: {
- 416: }
- 420: /********************* service factories ****************d*g**/
- 424: /**
- 427: */
- 429: {
- 432: $namespace
- 434: }
- 438: /**
- 439: * Returns instance of session or session namespace.
- 442: */
- 444: {
- 447: }
- 451: /********************* global configuration ****************d*g**/
- 455: /**
- 456: * Loads global configuration from file and process it.
- 459: */
- 461: {
- 463: }
- 467: /**
- 468: * Returns the global configuration.
- 472: */
- 474: {
- 480: }
- 481: }
- 483: }
