private function resolve(string $class): AbstractSeed
    {
        /** @var $instance \Roquie\Database\Seed\AbstractSeed */
        $instance = $this->autowire($class);
        $instance->setDatabase($this->database);
        $instance->setSeeder($this);

        if (! is_null($this->container)) {
            $instance->setContainer($this->container);
        }

        return $instance;
    }