code: private function getContainerRoute(array $routes, $name)
      {
          foreach ($routes as $route => $names) {
              if (in_array($name, $names, false)) {
                  return $route;
              }
          }
          throw new Exception("Unknown configuration class name '{$name}'");
      }
docs: Get container route for class name
  @param array $routes
  @param $name
  @throws Exception
  @return int|string