Project

General

Profile

Actions

Feature #37268

closed

Bootstrap: Introduce shutdown and use in autoloader

Added by Christian Kuhn almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Miscellaneous
Target version:
Start date:
2012-05-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

Description

The patch introduces a shutdown method to the bootstrap that can be used to perform clean up and shutdown things at the end of a script run. It is used in the most important entry scripts like FE, mod.php, cli and backend.

First usage of shutdown() is the autoloader: If new classes are found during script run, for example because they stick to the extbase naming scheme and do not have a ext_autoload entry, the autoloader wrote a new cache file for each class it found. Now, the autoloader remembers that the cache file should be updated and delays writing the cache file until it is unregistered. This way it writes the full cache entry only once at the end of a script run.

Actions #1

Updated by Gerrit Code Review almost 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11279

Actions #2

Updated by Christian Kuhn almost 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF