コード例 #1
0
ファイル: FileSystem.php プロジェクト: number0/php-vfs
 /**
  * @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();
 }
コード例 #2
0
ファイル: FileSystem.php プロジェクト: ngangchill/php-vfs
 /**
  * @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();
 }