public function __construct(ResourceProvider $provider, $file)
{
$this->provider = $provider;
$this->vars = $provider->vars;
$this->variables = $this->vars->variables;
$this->makePaths($file);
$this->validate();
$store_prefix = $this->variables->vstore->getPrefix();
$content = $this->loadContent($this->file);
$this->raw_content = $content;
if ($content) {
$this->content = $this->searchForResources($content, $store_prefix);
}
}