If the backend of the store cannot be written, a {@link WriteException}
is thrown. You should always handle this exception in your code:
php
try {
$store->clear();
} catch (WriteException $e) {
write failed
}
public clear ( ) |
/** * {@inheritdoc} */ public function clear() { parent::clear(); $this->types = array(); $this->bindings = array(); $this->store->clear(); }
/** * {@inheritdoc} */ public function removeBindingTypes() { $this->keysByTypeName = array(); $this->typesByKey = array(); $this->bindingsByKey = array(); $this->nextKey = 0; $this->store->clear(); }
/** * {@inheritdoc} */ public function clear() { $this->store->clear(); }