protected function doLoad($content, FilterInterface $additionalFilter = null)
    {
        $filter = clone $this->filters;
        if ($additionalFilter) {
            $filter->ensure($additionalFilter);
        }

        $asset = clone $this;
        $asset->setContent($content);

        $filter->filterLoad($asset);
        $this->content = $asset->getContent();

        $this->loaded = true;
    }
protected function doLoad($content, FilterInterface $additionalFilter = null)
    {
        $filter = clone $this->filters;
        if ($additionalFilter) {
            $filter->ensure($additionalFilter);
        }

        $asset = clone $this;
        $asset->setContent($content);

        $filter->filterLoad($asset);
        $this->content = $asset->getContent();

        $this->loaded = true;
    }
protected function doLoad ( $ content , FilterInterface $ additionalFilter = null ) { $ filter = clone $ this -> filters ; if ( $ additionalFilter ) { $ filter -> ensure ( $ additionalFilter ) ; } $ asset = clone $ this ; $ asset -> setContent ( $ content ) ; $ filter -> filterLoad ( $ asset ) ; $ this -> content = $ asset -> getContent ( ) ; $ this -> loaded = true ; }
Encapsulates asset loading logic.

@param string          $content          The asset content
@param FilterInterface $additionalFilter An additional filter
Encapsulates asset loading logic .