Source for file Application.php
Documentation is available at Application.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 http://nettephp.com
- 12: *
- 18: */
- 26: /**
- 27: * Front Controller.
- 28: *
- 32: */
- 34: {
- 50: /** @var array of function(NApplication $sender); Occurs before the application loads presenter */
- 53: /** @var array of function(NApplication $sender, \Exception $e = NULL); Occurs before the application shuts down */
- 56: /** @var array of function(NApplication $sender, NPresenterRequest $request); Occurs when a new request is ready for dispatch */
- 59: /** @var array of function(NApplication $sender, \Exception $e); Occurs when an unhandled exception occurs in the application */
- 76: /**
- 77: * Dispatch a HTTP request to a front controller.
- 79: */
- 81: {
- 90: }
- 92: // check HTTP method
- 101: }
- 102: }
- 104: // dispatching
- 111: }
- 116: // default router
- 123: }
- 125: // routing
- 130: }
- 134: }
- 135: }
- 140: // Instantiate presenter
- 147: }
- 150: // Execute presenter
- 154: // Send response
- 161: }
- 165: // fault barrier
- 168: }
- 172: }
- 178: }
- 182: }
- 191: // continue
- 196: 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>";
- 201: "<p>The server encountered an internal error and was unable to complete your request. Please try again later.</p>";
- 202: }
- 205: }
- 206: }
- 210: }
- 214: /**
- 215: * Returns all processed requests.
- 217: */
- 219: {
- 221: }
- 225: /**
- 226: * Returns current presenter.
- 228: */
- 230: {
- 232: }
- 236: /********************* services ****************d*g**/
- 240: /**
- 241: * Gets the service locator (experimental).
- 243: */
- 245: {
- 252: }
- 253: }
- 254: }
- 256: }
- 260: /**
- 261: * Gets the service object of the specified type.
- 265: */
- 267: {
- 269: }
- 273: /**
- 274: * Returns router.
- 276: */
- 278: {
- 280: }
- 284: /**
- 285: * Changes router.
- 288: */
- 290: {
- 293: }
- 297: /**
- 298: * Returns presenter loader.
- 300: */
- 302: {
- 304: }
- 308: /********************* request serialization ****************d*g**/
- 312: /**
- 313: * Stores current request to session.
- 316: */
- 318: {
- 327: }
- 331: /**
- 332: * Restores current request to session.
- 335: */
- 337: {
- 344: }
- 345: }
- 349: /********************* backend ****************d*g**/
- 353: /**
- 355: */
- 357: {
- 359: }
- 363: /**
- 365: */
- 367: {
- 369: }
- 373: /**
- 375: */
- 377: {
- 379: }
- 381: }