public function __construct(FactoryInterface $factory, $serverUri) { $this->factory = $factory; $this->valueConverter = $this->factory->get('PHPCR\\Util\\ValueConverter'); // append a slash if not there if ('/' !== substr($serverUri, -1)) { $serverUri .= '/'; } $this->server = $serverUri; }