Source for file Application.php
Documentation is available at Application.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 11: */
- 15: /**
- 16: * Front Controller.
- 17: *
- 20: */
- 22: {
- 38: /** @var array of function(Application $sender); Occurs before the application loads presenter */
- 41: /** @var array of function(Application $sender, \Exception $e = NULL); Occurs before the application shuts down */
- 44: /** @var array of function(Application $sender, PresenterRequest $request); Occurs when a new request is ready for dispatch */
- 47: /** @var array of function(Application $sender, \Exception $e); Occurs when an unhandled exception occurs in the application */
- 64: /**
- 65: * Dispatch a HTTP request to a front controller.
- 67: */
- 69: {
- 78: }
- 80: // autostarts session
- 84: }
- 86: // check HTTP method
- 94: }
- 95: }
- 97: // dispatching
- 104: }
- 109: // default router
- 116: }
- 118: // routing
- 123: }
- 127: }
- 128: }
- 133: // Instantiate presenter
- 140: }
- 143: // Execute presenter
- 147: // Send response
- 154: }
- 158: // fault barrier
- 161: }
- 165: }
- 171: }
- 175: }
- 184: // continue
- 189: echo "<title>404 Not Found</title>\n\n<h1>Not Found</h1>\n\n<p>The requested URL was not found on this server.</p>";
- 194: "<p>The server encountered an internal error and was unable to complete your request. Please try again later.</p>";
- 195: }
- 198: }
- 199: }
- 203: }
- 207: /**
- 208: * Returns all processed requests.
- 210: */
- 212: {
- 214: }
- 218: /**
- 219: * Returns current presenter.
- 221: */
- 223: {
- 225: }
- 229: /********************* services ****************d*g**/
- 233: /**
- 234: * Gets the service locator (experimental).
- 236: */
- 238: {
- 245: }
- 246: }
- 247: }
- 249: }
- 253: /**
- 254: * Gets the service object of the specified type.
- 258: */
- 260: {
- 262: }
- 266: /**
- 267: * Returns router.
- 269: */
- 271: {
- 273: }
- 277: /**
- 278: * Changes router.
- 281: */
- 283: {
- 286: }
- 290: /**
- 291: * Returns presenter loader.
- 293: */
- 295: {
- 297: }
- 301: /********************* service factories ****************d*g**/
- 305: /**
- 307: */
- 309: {
- 311: }
- 315: /********************* request serialization ****************d*g**/
- 319: /**
- 320: * Stores current request to session.
- 323: */
- 325: {
- 334: }
- 338: /**
- 339: * Restores current request to session.
- 342: */
- 344: {
- 351: }
- 352: }
- 356: /********************* backend ****************d*g**/
- 360: /**
- 362: */
- 364: {
- 366: }
- 370: /**
- 372: */
- 374: {
- 376: }
- 380: /**
- 382: */
- 384: {
- 386: }
- 388: }