Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Resolver.php
Go to the documentation of this file.
1 <?php
7 
11 class Resolver
12 {
18  private $strategyFactory;
19 
25  public function __construct(\Magento\Framework\App\Cache\Tag\Strategy\Factory $factory)
26  {
27  $this->strategyFactory = $factory;
28  }
29 
37  public function getTags($object)
38  {
39  if (!is_object($object)) {
40  throw new \InvalidArgumentException('Provided argument is not an object');
41  }
42 
43  return $this->strategyFactory->getStrategy($object)->getTags($object);
44  }
45 }
__construct(\Magento\Framework\App\Cache\Tag\Strategy\Factory $factory)
Definition: Resolver.php:25