Jackalope\Transport\Jackrabbit\Client::__construct PHP 메소드

__construct() 공개 메소드

Create a transport pointing to a server url.
public __construct ( Jackalope\FactoryInterface $factory, string $serverUri )
$factory Jackalope\FactoryInterface the object factory
$serverUri string location of the server
    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;
    }