protected function loadCollection($currentDir = null) { if ($this->innerCollection) { throw new RuntimeException('The asset collection was loaded already.'); } // Load the inner collection // The current Puli directory is null if the currently loaded Twig // template was not loaded via the Puli loader $this->innerCollection = $this->factory->createAssetForCurrentDir($currentDir, $this->inputs, $this->filters, $this->options); // GC $this->factory = null; $this->inputs = null; $this->filters = null; $this->options = null; }