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: // check HTTP method
- 88: }
- 89: }
- 91: // dispatching
- 98: }
- 103: // default router
- 110: }
- 112: // routing
- 117: }
- 121: }
- 122: }
- 127: // Instantiate presenter
- 134: }
- 137: // Execute presenter
- 141: // Send response
- 148: }
- 152: // fault barrier
- 155: }
- 159: }
- 165: }
- 169: }
- 178: // continue
- 183: 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>";
- 188: "<p>The server encountered an internal error and was unable to complete your request. Please try again later.</p>";
- 189: }
- 192: }
- 193: }
- 197: }
- 201: /**
- 202: * Returns all processed requests.
- 204: */
- 206: {
- 208: }
- 212: /**
- 213: * Returns current presenter.
- 215: */
- 217: {
- 219: }
- 223: /********************* services ****************d*g**/
- 227: /**
- 228: * Gets the service locator (experimental).
- 230: */
- 232: {
- 239: }
- 240: }
- 241: }
- 243: }
- 247: /**
- 248: * Gets the service object of the specified type.
- 252: */
- 254: {
- 256: }
- 260: /**
- 261: * Returns router.
- 263: */
- 265: {
- 267: }
- 271: /**
- 272: * Changes router.
- 275: */
- 277: {
- 280: }
- 284: /**
- 285: * Returns presenter loader.
- 287: */
- 289: {
- 291: }
- 295: /********************* service factories ****************d*g**/
- 299: /**
- 301: */
- 303: {
- 305: }
- 309: /********************* request serialization ****************d*g**/
- 313: /**
- 314: * Stores current request to session.
- 317: */
- 319: {
- 328: }
- 332: /**
- 333: * Restores current request to session.
- 336: */
- 338: {
- 345: }
- 346: }
- 350: /********************* backend ****************d*g**/
- 354: /**
- 356: */
- 358: {
- 360: }
- 364: /**
- 366: */
- 368: {
- 370: }
- 374: /**
- 376: */
- 378: {
- 380: }
- 382: }