public function add(ManagerInterface $manager, string $alias): void
    {
        $manager->setAlias($alias);

        // @todo – change this in 3.0
        if ($manager instanceof DefaultManager) {
            $manager->setDatabase($this->db);
        }

        $this->managers[$alias] = $manager;
    }