try { $r =
$this->container->
getReflectionClass($class);
} catch (\ReflectionException
$e) { $classes[$class] =
$e->
getMessage();
continue;
} // check to make sure the expected class exists
if (!
$r) { throw new InvalidArgumentException(sprintf('Expected to find class "%s" in file "%s" while importing services from resource "%s", but it was not found! Check the namespace prefix used with the resource.',
$class,
$path,
$pattern));
} if ($r->
isInstantiable() ||
$r->
isInterface()) { $classes[$class] = null;
} if ($autoconfigureAttributes && !
$r->
isInstantiable()) { $autoconfigureAttributes->
processClass($this->container,
$r);
} } // track only for new & removed files
if ($resource instanceof GlobResource
) { $this->container->
addResource($resource);
}