/** * @deprecated * @param $stream * @return string */ public static function getContentsFromStream($stream) { $self = new static($stream); return $self->getContents(); }
public function includeFile($path, $indent) { $src = new static($path, $this->indent . $indent); $src->vendorDir = $this->vendorDir; $src->bowerDir = $this->bowerDir; $src->filters = $this->filters; $src->directives = $this->directives; $src->blocks = $this->blocks; foreach ($src->getDependencies() as $dep) { $this->addDependency($dep); } return $src->getContents(); }