public function alias(string $from, string $to, array $params = null): void
    {
        if (!empty($params)) {
            $this->config->registerClassParameters($to, $params);
        }
        $this->config->registerClassAlias($from, $to);
    }