/**
  * {@inheritdoc}
  */
 public function clearRootAssetMappings()
 {
     $mappings = array();
     $hasListener = $this->dispatcher && $this->dispatcher->hasListeners(PuliEvents::POST_REMOVE_ASSET_MAPPING);
     if ($hasListener) {
         // Query the mappings for the event
         $mappings = $this->getRootAssetMappings();
     }
     $this->discoveryManager->removeRootBindings($this->exprBuilder->buildExpression());
     if ($hasListener) {
         foreach ($mappings as $mapping) {
             $this->dispatcher->dispatch(PuliEvents::POST_REMOVE_ASSET_MAPPING, new RemoveAssetMappingEvent($mapping));
         }
     }
 }
 /**
  * {@inheritdoc}
  */
 public function clearRootAssetMappings()
 {
     $this->discoveryManager->removeRootBindings($this->exprBuilder->buildExpression());
 }