/**
  * @param array           $prefixes The prefixes to use. If one of them is
  *                                  an empty string, the whole repository
  *                                  is used for routing.
  * @param array           $locales  Allowed locales.
  * @param ManagerRegistry $doctrine Used when the URL matches one of the
  *                                  $locales. This must be the same
  *                                  document manager as the RouteProvider
  *                                  is using.
  * @param int             $limit    Limit to candidates generated per prefix.
  */
 public function __construct(array $prefixes, array $locales = array(), ManagerRegistry $doctrine = null, $limit = 20)
 {
     parent::__construct($locales, $limit);
     $this->setPrefixes($prefixes);
     $this->doctrine = $doctrine;
 }