title: where is the basepath variable being set for the zend basePath view helper (maybe a factory)
body: <p>Id like to see how the <code>base path view helper</code> sets up the base path variable inside the helper class. </p>
  
  <p>This is an internal based questions, as I imagine its being done with a factory behind the scenes. </p>
  
  <p>I needed to replicate it with a custom version but im hardcoding the base path currently: <code>You'll see that even though its extending the basepath viewhelper i cannot configure the basepath variable without this current solution of hardcoding it</code></p>
  
  <pre><code>class PlutoBasePath extends \Zend\View\Helper\BasePath
  {
  
   public function __construct()
   {
      /**
       * @todo
       * @var Ambiguous $basePath
       */
      $this-&gt;basePath = Pluto::registry('prepend_location_url');  
   } 
  
   public function __invoke($file = null)
   {
          if (null === $this-&gt;basePath) {
              throw new Exception\RuntimeException('No base path provided');
          }
  
          if (null !== $file) {           
              \Pluto\Stdlib\FilesystemUtils::sanitizeFilePaths($file);
              \Pluto\Stdlib\FilesystemUtils::trimLeadingPath($file);                  
          }                       
          return $this-&gt;basePath.$file;
   }
  }
  </code></pre>
  
  <p>Id rather use a factory but I dont know how to access the base path set logic <strong>WHICH SETS UP THE FACTORY BASE PATH FOR THE base path view helper</strong> <code>to setup the custom base path correctly</code></p>
  
  <p><strong>How is it possible for me to  see the factory creation of the base path view helper is my base question</strong></p>