private function doLoadResources(RouteLoaderInterface $loader, $forceValidate)
    {
        $collection = [];

        foreach ($this->resources->all() as $i => $resource) {
            // dont't add the prmary resource to
            $this->current = (string)$resource;

            if ($loaded = $loader->loadRoutes($resource)) {
                $collection[] = $loaded->all();
            }
        }

        $routes = call_user_func_array('array_merge', $collection);

        if ($this->isDebugging() || $forceValidate) {
            $this->writeManifests();
        }

        $this->current = null;
        $this->storage->write(new Routes($routes));
    }