public CacheContextsManager::__construct(ContainerInterface $container, array $contexts)
Constructs a CacheContextsManager object.
\Symfony\Component\DependencyInjection\ContainerInterface $container: The current service container.
string[] $contexts: An array of the available cache context IDs.
public function __construct(ContainerInterface $container, array $contexts) { $this->container = $container; $this->contexts = $contexts; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!Context!CacheContextsManager.php/function/CacheContextsManager::__construct/8.1.x