Skip to content

Commit

Permalink
changes due to backword compatiblity constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
david-fuehr committed Apr 1, 2019
1 parent 83b34b8 commit f3d4d96
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lib/internal/Magento/Framework/Validator/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@
use Magento\Framework\ObjectManagerInterface;
use Magento\Framework\Phrase;
use Magento\Framework\Validator;
use Magento\Framework\Cache\FrontendInterface;

/**
* Factory for \Magento\Framework\Validator and \Magento\Framework\Validator\Builder.
*/
class Factory
{
/**
* cache key
*
* @deprecated
*/
const CACHE_KEY = __CLASS__;

/**
* @var ObjectManagerInterface
*/
Expand All @@ -26,7 +34,7 @@ class Factory
*
* @var iterable|null
*/
protected $_configFiles;
protected $_configFiles = null;

/**
* @var bool
Expand All @@ -43,10 +51,12 @@ class Factory
*
* @param ObjectManagerInterface $objectManager
* @param Reader $moduleReader
* @param FrontendInterface $cache @deprecated
*/
public function __construct(
ObjectManagerInterface $objectManager,
Reader $moduleReader
Reader $moduleReader,
FrontendInterface $cache
) {
$this->_objectManager = $objectManager;
$this->moduleReader = $moduleReader;
Expand Down

0 comments on commit f3d4d96

Please sign in to comment.