public function register(Container $gantry)
 {
     $sp = $this;
     $gantry['locator'] = function ($c) use($sp) {
         return new UniformResourceLocator(GANTRY5_ROOT);
     };
     $gantry['streams'] = function ($c) use($sp) {
         $schemes = (array) $c['platform']->get('streams');
         /** @var UniformResourceLocator $locator */
         $locator = $c['locator'];
         $streams = new Streams($locator);
         $streams->add($schemes);
         return $streams;
     };
 }
 public function register(Container $gantry)
 {
     $sp = $this;
     $gantry['locator'] = function ($c) use($sp) {
         return new UniformResourceLocator(GANTRY5_ROOT);
     };
     $gantry['streams'] = function ($c) use($sp) {
         $schemes = (array) $c['platform']->get('streams');
         /** @var UniformResourceLocator $locator */
         $locator = $c['locator'];
         $streams = new Streams($locator);
         $streams->add($schemes);
         CompiledYamlFile::setCachePath($locator->findResource('gantry-cache://compiled/yaml', true, true));
         return $streams;
     };
 }