Project

General

Profile

Actions

Feature #61841

closed

Shutdown Hook

Added by Marius Büscher about 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-09-24
Due date:
% Done:

0%

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

Description

It would be nice to have a shutdown hook called from Bootstrap->shutdown() to do some stuff during shutdown process, e.g. deliver some more content in BigPipe Style.

Actions #1

Updated by Christian Kuhn about 10 years ago

For the frontend, there is already an "end-of-frontend-rendering" hook that is called shortly before output is started. Is that enough for your purpose?

Actions #2

Updated by Benni Mack over 9 years ago

  • Status changed from New to Needs Feedback
Actions #3

Updated by Franz Holzinger over 9 years ago

1 TYPO3\CMS\Core\Core\Bootstrap::run("typo3/")

/var/www/html/developer/typo3_src-7.3.1/typo3/mod.php:

00022: define('TYPO3_MODE', 'BE');
00023: require __DIR__ . '/sysext/core/Classes/Core/Bootstrap.php';

00024: \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->run('typo3/')->shutdown();

A hook could be added here.

    /**
     * Things that should be performed to shut down the framework.
     * This method is called in all important scripts for a clean
     * shut down of the system.
     *
     * @return Bootstrap
     * @internal This is not a public API method, do not use in own extensions
     */
    public function shutdown() {
        return $this;
    }
Actions #4

Updated by Alexander Opitz about 9 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF