private function dispatchEagerly(array $bootstrapperClasses, bool $run)
    {
        foreach ($bootstrapperClasses as $bootstrapperClass) {
            /** @var Bootstrapper $bootstrapper */
            $bootstrapper = $this->bootstrapperResolver->resolve($bootstrapperClass);
            $this->bootstrapperObjects[] = $bootstrapper;
            $bootstrapper->registerBindings($this->container);
        }

        if ($run) {
            foreach ($this->bootstrapperObjects as $bootstrapper) {
                $this->container->callMethod($bootstrapper, 'run', [], true);
            }
        }
    }