protected function activating(string $name): bool
    {
        if (\is_null($active = $this->refresh($name))) {
            return false;
        }

        $this->extensions->put($name, $active[$name]);
        $this->publish($name);

        $this->dispatcher->activating($name, $active[$name]);

        return true;
    }