Esempio n. 1
0
 /**
  * @param string               $scheme
  * @param string               $wrapperClass
  * @param NodeFactoryInterface $factory
  * @param NodeWalkerInterface  $walker
  * @param RegistryInterface    $registry
  * @param LoggerInterface      $logger
  */
 public function __construct($scheme, $wrapperClass, NodeFactoryInterface $factory, NodeWalkerInterface $walker, RegistryInterface $registry, LoggerInterface $logger)
 {
     $this->wrapperClass = $wrapperClass;
     $this->scheme = $this->formatScheme($scheme);
     $this->walker = $walker;
     $this->logger = $logger;
     $this->factory = $factory;
     $this->registry = $registry;
     $this->root = $factory->buildDirectory();
 }
Esempio n. 2
0
 /**
  * @param string               $scheme
  * @param string               $wrapperClass
  * @param NodeFactoryInterface $nodeFactory
  * @param NodeWalkerInterface  $nodeWalker
  * @param RegistryInterface    $registry
  * @param LoggerInterface      $logger
  */
 public function __construct($scheme, $wrapperClass, NodeFactoryInterface $nodeFactory, NodeWalkerInterface $nodeWalker, RegistryInterface $registry, LoggerInterface $logger)
 {
     $this->wrapperClass = $wrapperClass;
     $this->scheme = rtrim($scheme, ':/\\');
     $this->nodeWalker = $nodeWalker;
     $this->logger = $logger;
     $this->nodeFactory = $nodeFactory;
     $this->registry = $registry;
     $this->root = $nodeFactory->buildDirectory();
 }