[FEATURE] Bootstrap: Introduce shutdown and use in autoloader
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 17 May 2012 20:23:57 +0000 (22:23 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 20 May 2012 10:52:26 +0000 (12:52 +0200)
commit4cef5ef01649f12b0d514079240a8e96197eb6fe
tree69d083aa6d52ddbe0d6b339d26415ff327dc0e3b
parent1e39d9fa072d8cd0afd44c7e0a32e59780e5c1ec
[FEATURE] Bootstrap: Introduce shutdown and use in autoloader

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 of writing the cache file
until it is unregistered.
This way the full cache entry is only written once during shutdown.

Change-Id: Ibb84a7db65eb28e792c0b5ee9bedec00b29dbbb9
Resolves: #37268
Releases: 6.0
Reviewed-on: http://review.typo3.org/11279
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_autoloader.php
tests/Unit/t3lib/class.t3lib_autoloaderTest.php
typo3/Bootstrap.php
typo3/backend.php
typo3/cli_dispatch.phpsh
typo3/mod.php
typo3/sysext/cms/tslib/index_ts.php