You are here

public function AutoloadCache::offsetSet in Autoload 7.2

Overrides ArrayContainer::offsetSet

File

./autoload.cache.inc, line 153
Autoload cache controller.

Class

AutoloadCache
Class AutoloadCache.

Code

public function offsetSet($namespace, $value) {
  if (!is_array($value) || empty($value['file']) || empty($value['provider']) || !file_exists($value['file'])) {
    throw new \InvalidArgumentException(sprintf('Incorrect value for the "%s()" method.', __METHOD__));
  }
  parent::offsetSet($namespace, $value);
}