Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / ConstraintValidatorFactory.php
index cc6981b9461cefbbfba3a82d172339b22e1dbcbd..86e44e2a5580fc16cf6ca71490594df05f5eb405 100644 (file)
@@ -26,11 +26,8 @@ class ConstraintValidatorFactory implements ConstraintValidatorFactoryInterface
 {
     protected $validators = array();
 
-    private $propertyAccessor;
-
-    public function __construct($propertyAccessor = null)
+    public function __construct()
     {
-        $this->propertyAccessor = $propertyAccessor;
     }
 
     /**
@@ -42,7 +39,7 @@ class ConstraintValidatorFactory implements ConstraintValidatorFactoryInterface
 
         if (!isset($this->validators[$className])) {
             $this->validators[$className] = 'validator.expression' === $className
-                ? new ExpressionValidator($this->propertyAccessor)
+                ? new ExpressionValidator()
                 : new $className();
         }