public function alias(array $class = [], string $alias = null) : Manager
    {
        if (!is_array($class)) {
            $this->set($class, $alias);

            return $this;
        }

        $this->aliases = array_merge($this->get(), $class);

        return $this;
    }