public function getRoutesByNames($names, $parameters = [])
    {
        $qb = $this->pageRepository->createQueryBuilder('p');
        $qb
            ->select('p.route, p.controller, t.path, t.locale')
            ->join('p.translations', 't')
            ->andWhere($qb->expr()->eq('p.static', 0))
        ;
        if (is_array($names) && !empty($names)) {
            $qb->andWhere($qb->expr()->in('p.route', $names));
        } elseif (is_string($names) && 0 < strlen($names)) {
            $qb->andWhere($qb->expr()->eq('p.route', $qb->expr()->literal($names)));
        }

        $results = $qb->getQuery()->getArrayResult();

        return $this->transformResultsToRoutes($results);
    }