public function bootstrapActions() { if (empty($this->config['bootstrapActions'])) { return; } foreach ($this->config['bootstrapActions'] as $action) { if (!is_callable($action)) { do_action($action); } else { call_user_func($action); } } }