Feature #32333
Modular and configurable bootstrap
Status: | Resolved | Start date: | 2011-12-06 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Robert Lemke | % Done: | 100% |
|
Category: | Core | |||
Target version: | TYPO3 Flow Base Distribution - 1.1 beta 1 | |||
PHP Version: | Complexity: | hard | ||
Has patch: | No |
Description
The bootstrap contains a big amount of specific initialization methods. The order of execution and selection of initialization methods is hardwired in the Bootstrap class. This makes it impossible for package developers to provide alternative boot sequences for specific tasks (such as for a very optimized caching mechanism) and in general results in a rather function-based, sequential code than being object-oriented.
It thus should be possible to register Request Handlers for specific purposes and those should be in charge of the actual boot sequence which is executed.
Related issues
Associated revisions
[TASK] Optimized package manager and configuration manager initialization
This patch introduces a somewhat lazier initialization for the
Configuration Manager's cache and the scanning of available packages
and loading of package state information.
NOTE: On the first hit, the modified Package Manager will introduce
a new format for the PackageStates.php. From now on the configuration
in that file also contains a version number which allows for automatic
migration of that file in the future.
Change-Id: I690baafd2fafa24dd104950eea82b10815280427
Related: #32333
Releases: 1.1
[FEATURE][!!!] Modular and configurable bootstrap
This extracts all specific initialization methods from the bootstrap
into a "Scripts" class and instead of hard-wiring each initialization
step, introduces a loose, configurable coupling by means of a sequence
and steps. The responsibility for the actual boot sequence now lies at
the request handler taking care of the request.
Request handlers must now be explicitly registered in the package
class. The interface to be implemented was moved to the Core namespace.
Resolves: #32333
Releases: 1.1
Change-Id: I467a2a3b02167087a23dba1eb64d1a9747eac8ba
History
#1 Updated by Gerrit Code Review over 3 years ago
- Status changed from Accepted to Under Review
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#2 Updated by Christopher Hlubek over 3 years ago
After testing the patch I found at least one problem:
- The activation of new packages does not work with this patch applied. "flow3 package:list" does not show an inactive, new package.
#3 Updated by Gerrit Code Review over 3 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#4 Updated by Gerrit Code Review over 3 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#5 Updated by Gerrit Code Review over 3 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#6 Updated by Gerrit Code Review over 3 years ago
Patch set 9 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#7 Updated by Gerrit Code Review over 3 years ago
Patch set 10 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#8 Updated by Gerrit Code Review over 3 years ago
Patch set 11 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#9 Updated by Gerrit Code Review over 3 years ago
Patch set 12 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#10 Updated by Gerrit Code Review over 3 years ago
Patch set 13 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/6997
#11 Updated by Robert Lemke over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ae111dd0a0f15e548989d45c0186f4e4ec30bbf9.
#12 Updated by Karsten Dambekalns over 3 years ago
- Target version changed from 1.1 to 1.1 beta 1