Project

General

Profile

Actions

Feature #37268

closed

Bootstrap: Introduce shutdown and use in autoloader

Added by Christian Kuhn about 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

Also available in: Atom PDF