Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  *
  * @throws \InvalidArgumentException When class name is not a string
  */
 public function getRepository($className)
 {
     if (!is_string($className)) {
         throw new \InvalidArgumentException(sprintf('Class name must be a string, "%s" given.', is_object($className) ? 'Object ' . get_class($className) : gettype($className)));
     }
     return parent::getRepository($className);
 }