Пример #1
0
 /**
  * @param UriInterface $uri
  *
  * @return Content
  */
 public function load(UriInterface $uri)
 {
     if (!$uri instanceof DataUriInterface) {
         throw new InvalidUriTypeException($uri, 'Eloquent\\Schemer\\Uri\\DataUriInterface');
     }
     return new Content($uri->getData(), $this->stripMimeTypeParameters($uri->getMimeType()));
 }