Ejemplo n.º 1
0
 public function testClearCacheForUrl()
 {
     $url = 'http://test.local';
     $path = $this->manager->getCachedWsdlPath($url);
     $this->assertClearCache($path);
     $this->manager->clearCacheForUrl($url);
 }
Ejemplo n.º 2
0
 /**
  * @param LifecycleEventArgs $eventArgs
  */
 public function preRemove(LifecycleEventArgs $eventArgs)
 {
     $entity = $eventArgs->getEntity();
     if ($entity instanceof MagentoSoapTransport && $entity->getWsdlUrl()) {
         $this->wsdlManager->clearCacheForUrl($entity->getWsdlUrl());
     }
 }