src/Shutdown.php
public function execute() {
    // Make sure this runs only once.
    if($this->priorities) {
      // Sort the functions by their priority.
      if(ksort($this->callbacks)) {
        foreach($this->callbacks as $callbacks) {
          foreach($callbacks as $callback) {
            call_user_func($callback);
          }
        }
      }

      // Destroy instance.
      $this->priorities = null;
      $this->callbacks = null;
    }
  }
public function execute() {
    // Make sure this runs only once.
    if($this->priorities) {
      // Sort the functions by their priority.
      if(ksort($this->callbacks)) {
        foreach($this->callbacks as $callbacks) {
          foreach($callbacks as $callback) {
            call_user_func($callback);
          }
        }
      }

      // Destroy instance.
      $this->priorities = null;
      $this->callbacks = null;
    }
  }
public function execute ( ) { // Make sure this runs only once. if ( $ this -> priorities ) { // Sort the functions by their priority. if ( ksort ( $ this -> callbacks ) ) { foreach ( $ this -> callbacks as $ callbacks ) { foreach ( $ callbacks as $ callback ) { call_user_func ( $ callback ) ; } } } // Destroy instance. $ this -> priorities = null ; $ this -> callbacks = null ; } }
Executes the shutdown routine and call all registered callbacks in the
order they were registered. You should never have to call this method in
your app as the class will call it on its own.

Note that once this method runs, either manually by you or automatically
as part of a normal PHP shutdown, it will free all resources and destroy
the class.
Executes the shutdown routine and call all registered callbacks in the order they were registered . You should never have to call this method in your app as the class will call it on its own .