@@ -88,27 +88,6 @@ private function initSession()
88
88
}
89
89
}
90
90
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
-
112
91
/**
113
92
* Change the current workspace
114
93
*
@@ -118,7 +97,7 @@ public function changeWorkspace($workspaceName)
118
97
{
119
98
$ this ->init ();
120
99
$ this ->session ->logout ();
121
- $ this ->profile ->set ('transport ' , 'phpcr- workspace ' , $ workspaceName );
100
+ $ this ->profile ->set ('phpcr ' , 'workspace ' , $ workspaceName );
122
101
$ this ->initSession ($ this ->profile );
123
102
}
124
103
@@ -135,11 +114,11 @@ public function relogin($username, $password, $workspaceName = null)
135
114
$ this ->session ->logout ();
136
115
}
137
116
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 );
140
119
141
120
if ($ workspaceName ) {
142
- $ this ->profile ->setOption ('phpcr- workspace ' , $ workspaceName );
121
+ $ this ->profile ->set ('phpcr ' , ' workspace ' , $ workspaceName );
143
122
}
144
123
145
124
$ this ->init ();
0 commit comments