1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is it possible to hook into Dependencies?

Discussion in 'XenForo Development Discussions' started by Jaxel, Jan 6, 2013.

  1. Jaxel

    Jaxel Well-Known Member

    I would like to hook into "XenForo_Dependencies_Public" and replace the existing "_getNavigationContainerParams" or "getEffectiveContainerParams".

    Is something like this possible? How would I do it?

    Basically I would like to do something along the lines of:

        public function getEffectiveContainerParams()
            $response = parent::getEffectiveContainerParams();
            return $response;
  2. Chris D

    Chris D XenForo Developer Staff Member

    The event "container_public_params" is fired in XenForo_Dependencies_Public

    I've just tested and this works:

    class RemoveMembersTab_Listener
        public static function 
    unsetTab(array &$paramsXenForo_Dependencies_Abstract $dependencies)
    Jake Bunce likes this.
  3. Jaxel

    Jaxel Well-Known Member

    Thanks Chris.
    Chris D likes this.

Share This Page