@@ -88,27 +88,6 @@ private function initSession()
8888 }
8989 }
9090
91- /**
92- * Return the transport as defined in the profile
93- *
94- * @access private
95- */
96- private function getTransport ()
97- {
98- $ transportName = $ this ->profile ->getOption ('transport ' );
99-
100- if (!isset ($ this ->transports [$ transportName ])) {
101- throw new \InvalidArgumentException (sprintf (
102- 'Unknown transport "%s", I have "%s" ' ,
103- $ transportName , implode (', ' , array_keys ($ this ->transports ))
104- ));
105- }
106-
107- $ transport = $ this ->transports [$ transportName ];
108-
109- return $ transport ;
110- }
111-
11291 /**
11392 * Change the current workspace
11493 *
@@ -118,7 +97,7 @@ public function changeWorkspace($workspaceName)
11897 {
11998 $ this ->init ();
12099 $ this ->session ->logout ();
121- $ this ->profile ->set ('transport ' , 'phpcr- workspace ' , $ workspaceName );
100+ $ this ->profile ->set ('phpcr ' , 'workspace ' , $ workspaceName );
122101 $ this ->initSession ($ this ->profile );
123102 }
124103
@@ -135,11 +114,11 @@ public function relogin($username, $password, $workspaceName = null)
135114 $ this ->session ->logout ();
136115 }
137116
138- $ this ->profile ->setOption ('phpcr- username ' , $ username );
139- $ this ->profile ->setOption ('phpcr- password ' , $ password );
117+ $ this ->profile ->set ('phpcr ' , ' username ' , $ username );
118+ $ this ->profile ->set ('phpcr ' , ' password ' , $ password );
140119
141120 if ($ workspaceName ) {
142- $ this ->profile ->setOption ('phpcr- workspace ' , $ workspaceName );
121+ $ this ->profile ->set ('phpcr ' , ' workspace ' , $ workspaceName );
143122 }
144123
145124 $ this ->init ();
0 commit comments